ZF-8476: lastItemNumber is greater than totalItemCount when using Zend_Paginator_Adapter_Null

Issue Type: Bug Created: 2009-12-04T15:28:14.000+0000 Last Updated: 2010-08-21T06:04:43.000+0000 Status: Closed Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Ryan Horn ( Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Paginator

Related issues: Attachments:


<pre class="highlight">

$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null(2));
$pages = $paginator->getPages();

// Will be 2
echo $pages->totalItemCount;

// Will be 50
echo $pages->lastItemNumber;


Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T06:04:43.000+0000

This issues already was resolved as of the version 1.10.0.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.