diff options
Diffstat (limited to 'ext/spl/examples/seekableiterator.inc')
| -rwxr-xr-x | ext/spl/examples/seekableiterator.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/seekableiterator.inc b/ext/spl/examples/seekableiterator.inc index 7e47009260..3012155771 100755 --- a/ext/spl/examples/seekableiterator.inc +++ b/ext/spl/examples/seekableiterator.inc @@ -19,7 +19,7 @@ interface SeekableIterator implements Iterator function seek($index); /* $this->rewind(); $position = 0; - while($position < $index && $this->hasMore()) { + while($position < $index && $this->valid()) { $this->next(); $position++; } |
