浏览代码

ZF-6989: changed the result object hash generation on request, do fix a possible problem

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22307 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate 15 年之前
父节点
当前提交
52af4f5f6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Paginator.php

+ 1 - 1
library/Zend/Paginator.php

@@ -1013,7 +1013,7 @@ class Zend_Paginator implements Countable, IteratorAggregate
     protected function _getCacheInternalId()
     protected function _getCacheInternalId()
     {
     {
         return md5(serialize(array(
         return md5(serialize(array(
-            get_class($this->getAdapter()),
+            spl_object_hash($this->getAdapter()),
             $this->getItemCountPerPage()
             $this->getItemCountPerPage()
         )));
         )));
     }
     }