1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

fix cruft from previous incarnation of the iterators

This commit is contained in:
Wez Furlong
2003-10-17 21:03:01 +00:00
parent d8d1ca3f3b
commit 398f032203

View File

@@ -64,9 +64,10 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
zval **ptr_ptr;
zval *ptr;
/* sanity */
if (I->key == (ulong)-1) {
*data = NULL;
return FAILURE;
return;
}
MAKE_STD_ZVAL(ptr);
@@ -75,7 +76,7 @@ static void com_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC
*ptr_ptr = ptr;
*data = ptr_ptr;
return SUCCESS;
return;
}
static int com_iter_get_key(zend_object_iterator *iter, char **str_key, uint *str_key_len,