summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-08-14 16:43:38 +0000
committerAndrey Hristov <andrey@php.net>1999-08-14 16:43:38 +0000
commitc85209985a8d671d4a1a5146eeab2dda23f14f04 (patch)
tree15944854a7600d878d35ae7fdbb06ecd42550ede
parentf12728f13e6a35dd4551645771e95084aa1179a6 (diff)
downloadphp-git-c85209985a8d671d4a1a5146eeab2dda23f14f04.tar.gz
Forgot to have internal pointer reset.
-rw-r--r--ext/standard/basic_functions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 8a6a8be6cb..27832186d8 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1470,6 +1470,7 @@ 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 */