From bb77132391aaeb07daa0e057ea5c11cdb151dfda Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 4 Oct 2004 17:53:55 +0000 Subject: [PATCH] - Add new test --- ext/standard/tests/array/bug29992.phpt | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 ext/standard/tests/array/bug29992.phpt diff --git a/ext/standard/tests/array/bug29992.phpt b/ext/standard/tests/array/bug29992.phpt new file mode 100755 index 0000000000..74be291891 --- /dev/null +++ b/ext/standard/tests/array/bug29992.phpt @@ -0,0 +1,44 @@ +--TEST-- +Bug #29992 (foreach by reference corrupts the array) +--FILE-- + +===DONE=== +--EXPECT-- +Array +( + [0] => 1 + [1] => 2 + [2] => 3 +) +int(1) +int(2) +int(3) +int(1) +int(2) +int(3) +int(1) +int(2) +int(3) +int(1) +int(2) +int(3) +Array +( + [0] => 1 + [1] => 2 + [2] => 3 +) +===DONE=== -- 2.50.1