Home » PEAR » PEAR_Frontend_Web » Bug #1284
In PHP5 you must use the "Pager::factory($params)" method.
Details
| 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) |
Comments
[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',
));
[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