summaryrefslogtreecommitdiff
path: root/ext/spl/examples/dba_reader.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/examples/dba_reader.inc')
-rwxr-xr-xext/spl/examples/dba_reader.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/dba_reader.inc b/ext/spl/examples/dba_reader.inc
index d21db45613..fa8fd3d854 100755
--- a/ext/spl/examples/dba_reader.inc
+++ b/ext/spl/examples/dba_reader.inc
@@ -64,7 +64,7 @@ class DbaReader implements Iterator
/**
* @return Whether more elements are available.
*/
- function hasMore() {
+ function valid() {
if ($this->db && $this->key !== false) {
return true;
} else {