From 6ca72e6ea515b7de33225edc5e86beacb453f179 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 28 Oct 2005 10:06:53 +0000 Subject: [PATCH] Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) --- ext/standard/tests/array/bug34982.phpt | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 ext/standard/tests/array/bug34982.phpt 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 + ) + +) -- 2.40.0