summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/ZEND_CHANGES4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES
index 1b172eb91e..d00c6f7f25 100644
--- a/Zend/ZEND_CHANGES
+++ b/Zend/ZEND_CHANGES
@@ -841,7 +841,7 @@ Changes in the Zend Engine 2.0
function rewind() {
$this->num = 0;
}
- function hasMore() {
+ function valid() {
return $this->num < $this->obj->max;
}
function key() {
@@ -878,7 +878,7 @@ Changes in the Zend Engine 2.0
// matches the following 7 lines with the for directive.
$it = $obj->getIterator();
- for($it->rewind(); $it->hasMore(); $it->next()) {
+ for($it->rewind(); $it->valid(); $it->next()) {
$key = $it->key();
$val = $it->current();
echo "$key = $val\n";