PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_Frontend_Web » Bug #1284

In PHP5 you must use the "Pager::factory($params)" method.

Details

Submitted2004-04-26 12:34 UTC
Fromsaulo at aiegua dot com dot br
Assignedpajoye
StatusClosed
PackagePEAR_Frontend_Web
PHP Version5.0.0RC1 (Release Candidate 1)
OSWindows 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