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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user