Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.5

Bug #1284 In PHP5 you must use the "Pager::factory($params)" method.
Submitted: 2004-04-26 12:34 UTC
From: saulo at aiegua dot com dot br Assigned: pajoye
Status: Closed Package: PEAR_Frontend_Web
PHP Version: 5.0.0RC1 (Release Candidate 1) OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 30 + 23 = ?

 
 [2004-04-26 12:34 UTC] saulo at aiegua dot com dot br
Description: ------------ PEAR_Frontend_Web donĀ“t work. Warning: In PHP5 you must use the "Pager::factory($params)" method instead of "new Pager($params)" in C:\intranet\www\PEAR\PEAR\Pager\Pager.php on line Reproduce code: --------------- $pager =& new Pager(array( 'itemData' => $data['data'], 'perPage' => ($paging ? 5 : count($data['data'])), 'linkClass' => 'green', ));

Comments

 [2004-05-27 20:11 UTC] pierre at dotgeek dot org
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. We do not use anymore Pager in the current cvs. The next release will contain this change. --Pierre