From 6a8a25567fce2465c07885710ea96e436de2a6ae Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 9 Mar 2004 16:53:12 +0000 Subject: [PATCH] Rename hasMore() to valid() as discussed. (Part VI) --- Zend/ZEND_CHANGES | 4 ++-- 1 file 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"; -- 2.40.0