cvs: /php4/ext/standard array.c
| From: | Andrei Zmievski | Date: | Thu, 13 Apr 2000 18:58:07 +0000 |
| Subject: | cvs: /php4/ext/standard array.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13516@lists.php.net to get a copy of this message | ||
andrei Thu Apr 13 11:58:07 2000 EDT
Modified files:
/php4/ext/standard array.c
Log:
@- array_walk() now automatically resets the array. (Andrei)
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.38 php4/ext/standard/array.c:1.39
--- php4/ext/standard/array.c:1.38 Wed Apr 12 12:39:02 2000
+++ php4/ext/standard/array.c Thu Apr 13 11:57:37 2000
@@ -888,6 +888,8 @@
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 */