From 501a4edf49be2fd00e8f29edacfe83449d475474 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 4 Oct 2004 17:53:56 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. --- 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