Browse Source

ZF-10582: added call of rewind to fix php bug #53119 after OutOfBoundException

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23188 44c647ce-9c0f-0410-b52a-842ac1e357ba
mabe 15 years ago
parent
commit
c646fd59bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      library/Zend/Paginator/SerializableLimitIterator.php

+ 1 - 0
library/Zend/Paginator/SerializableLimitIterator.php

@@ -122,6 +122,7 @@ class Zend_Paginator_SerializableLimitIterator extends LimitIterator implements
                 return null !== $current;
             } catch (OutOfBoundsException $e) {
                 // reset position in case of exception is assigned null
+                $this->rewind();
                 $this->seek($currentOffset);
                 return false;
             }