summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorBrian Shire <shire@php.net>2008-01-14 22:09:52 +0000
committerBrian Shire <shire@php.net>2008-01-14 22:09:52 +0000
commit82874e094b87a2cc8b6ba4da4e320da0291e4f16 (patch)
tree0335b1ffa105537f4325471b87a0078bcccf30d9 /ext/standard/array.c
parent40dc00410da910d34d41c04be8cdb1a0808c6f95 (diff)
downloadphp-git-82874e094b87a2cc8b6ba4da4e320da0291e4f16.tar.gz
MFH: Fix bug #42850 array_walk_recursive() leaves references, refix bug #34982
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index b2983090e0..c7f2c3a30a 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1038,7 +1038,7 @@ static int php_array_walk(HashTable *target_hash, zval **userdata, int recursive
zend_fcall_info orig_array_walk_fci;
zend_fcall_info_cache orig_array_walk_fci_cache;
- SEPARATE_ZVAL_TO_MAKE_IS_REF(args[0]);
+ SEPARATE_ZVAL_IF_NOT_REF(args[0]);
thash = HASH_OF(*(args[0]));
if (thash->nApplyCount > 1) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "recursion detected");