cvs: ZendEngine2 / ZEND_CHANGES

From: Date: Tue, 09 Mar 2004 16:53:13 +0000
Subject: cvs: ZendEngine2 / ZEND_CHANGES
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2461@lists.php.net to get a copy of this message
helly Tue Mar 9 11:53:13 2004 EDT Modified files: /ZendEngine2 ZEND_CHANGES Log: Rename hasMore() to valid() as discussed. (Part VI) http://cvs.php.net/diff.php/ZendEngine2/ZEND_CHANGES?r1=1.79&r2=1.80&ty=u Index: ZendEngine2/ZEND_CHANGES diff -u ZendEngine2/ZEND_CHANGES:1.79 ZendEngine2/ZEND_CHANGES:1.80 --- ZendEngine2/ZEND_CHANGES:1.79 Sun Feb 22 13:50:47 2004 +++ ZendEngine2/ZEND_CHANGES Tue Mar 9 11:53:12 2004 @@ -841,7 +841,7 @@ function rewind() { $this->num = 0; } - function hasMore() { + function valid() { return $this->num < $this->obj->max; } function key() { @@ -878,7 +878,7 @@ // 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";

« previous php.zend-engine.cvs (#2461) next »