]> granicus.if.org Git - php/commitdiff
Rename hasMore() to valid() as discussed. (Part VI)
authorMarcus Boerger <helly@php.net>
Tue, 9 Mar 2004 16:53:12 +0000 (16:53 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 9 Mar 2004 16:53:12 +0000 (16:53 +0000)
Zend/ZEND_CHANGES

index 1b172eb91e6d05c1651554a8ef358d51f680d44d..d00c6f7f2557bdc68b5ff30861e9871960d558f7 100644 (file)
@@ -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";