From: Marcus Boerger Date: Tue, 9 Mar 2004 16:53:12 +0000 (+0000) Subject: Rename hasMore() to valid() as discussed. (Part VI) X-Git-Tag: php-5.0.0RC1RC1~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a8a25567fce2465c07885710ea96e436de2a6ae;p=php Rename hasMore() to valid() as discussed. (Part VI) --- 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";