summaryrefslogtreecommitdiff
path: root/Zend/ZEND_CHANGES
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-03-09 16:53:12 +0000
committerMarcus Boerger <helly@php.net>2004-03-09 16:53:12 +0000
commit6a8a25567fce2465c07885710ea96e436de2a6ae (patch)
tree845cb71cd2e9d424ff9f12c369483af5ed241824 /Zend/ZEND_CHANGES
parent2bdcfe4d0e90404489c91100e0be370e98a42134 (diff)
downloadphp-git-6a8a25567fce2465c07885710ea96e436de2a6ae.tar.gz
Rename hasMore() to valid() as discussed. (Part VI)
Diffstat (limited to 'Zend/ZEND_CHANGES')
-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";