From: Marcus Boerger Date: Mon, 4 Oct 2004 17:53:55 +0000 (+0000) Subject: - Add new test X-Git-Tag: PRE_NEW_VM_GEN_PATCH~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb77132391aaeb07daa0e057ea5c11cdb151dfda;p=php - Add new test --- 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===