From: Dmitry Stogov Date: Fri, 28 Oct 2005 10:06:53 +0000 (+0000) Subject: Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) X-Git-Tag: RELEASE_2_0_1~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ca72e6ea515b7de33225edc5e86beacb453f179;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 + ) + +)