ZF-9940: Zend_Paginator get the same Cache Data

Issue Type: Bug Created: 2010-06-03T02:45:53.000+0000 Last Updated: 2010-08-20T17:16:12.000+0000 Status: Closed Fix version(s): Reporter: starflash (starflash) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Paginator

Related issues: Attachments:


File: Zend_Paginator.php Method: protected function _getCacheInternalId() on line 1013 protected function _getCacheInternalId() { return md5(serialize(array( get_class($this->getAdapter()), $this->getItemCountPerPage() ))); }

If the getAdapter() return a Zend_Paginator_Adapter_DbSelect object, it will always be 'Zend_Paginator_Adapter_DbSelect'. So $select->where('type = ?', news) and $select->where('type = ?', 'blog') will have the same cache id.


Posted by Martin Meißner (meisii) on 2010-08-18T05:35:00.000+0000

Assign this issue to Marco Kaiser. This problem can be closed, since the code has now changed. See my last comment on the issue ZF-6989. You can also look in the trunk: […]

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-20T17:16:12.000+0000

Fixed by [~bate] in revision r22828.

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.