]> granicus.if.org Git - php/commitdiff
Forgot to have internal pointer reset.
authorAndrey Hristov <andrey@php.net>
Sat, 14 Aug 1999 16:43:38 +0000 (16:43 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 14 Aug 1999 16:43:38 +0000 (16:43 +0000)
ext/standard/basic_functions.c

index 8a6a8be6cb2ca41140702da9e9f1ceeca81cd203..27832186d88657f271c355ce71f9f1441b12af34 100644 (file)
@@ -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 */