mirror of
https://github.com/php/php-src.git
synced 2025-01-27 14:13:41 +08:00
@- array_walk() now automatically resets the array. (Andrei)
This commit is contained in:
parent
aa6769dde2
commit
9ffd5b5595
@ -888,6 +888,8 @@ static int php_array_walk(HashTable *target_hash, zval **userdata)
|
||||
args[1] = &key;
|
||||
args[2] = userdata;
|
||||
|
||||
zend_hash_internal_pointer_reset(target_hash);
|
||||
|
||||
/* Iterate through hash */
|
||||
while(zend_hash_get_current_data(target_hash, (void **)&args[0]) == SUCCESS) {
|
||||
/* Set up the key */
|
||||
|
Loading…
Reference in New Issue
Block a user