Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
c646fd59bf

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

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