From: Dmitry Stogov Date: Fri, 28 Oct 2005 10:06:43 +0000 (+0000) Subject: Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) X-Git-Tag: php-5.1.0RC4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3cb94abff0e21f4831c6e58795462537f07f482;p=php Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) --- diff --git a/ext/standard/tests/array/bug34982.phpt b/ext/standard/tests/array/bug34982.phpt new file mode 100755 index 0000000000..9de3408b0a --- /dev/null +++ b/ext/standard/tests/array/bug34982.phpt @@ -0,0 +1,40 @@ +--TEST-- +Bug #34982 array_walk_recursive() modifies elements outside function scope +--FILE-- + +--EXPECT-- +Array +( + [0] => changed + [1] => Array + ( + [0] => changed + ) + +) +Array +( + [0] => element 1 + [1] => Array + ( + [0] => subelement1 + ) + +)