diff options
Diffstat (limited to 'ext/standard/tests/array/bug29992.phpt')
| -rwxr-xr-x | ext/standard/tests/array/bug29992.phpt | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/ext/standard/tests/array/bug29992.phpt b/ext/standard/tests/array/bug29992.phpt deleted file mode 100755 index 74be291891..0000000000 --- a/ext/standard/tests/array/bug29992.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Bug #29992 (foreach by reference corrupts the array) ---FILE-- -<?php - -$array = array(1,2,3); - -print_r($array); - -foreach($array as $item) var_dump($item); -foreach($array as &$item) var_dump($item); -foreach($array as &$item) var_dump($item); -foreach($array as $item) var_dump($item); - -print_r($array); - -?> -===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=== |
