summaryrefslogtreecommitdiff
path: root/ext/spl/examples/seekableiterator.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/examples/seekableiterator.inc')
-rwxr-xr-xext/spl/examples/seekableiterator.inc2
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++;
}