diff options
author | Marcus Boerger <helly@php.net> | 2004-03-20 16:13:37 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-03-20 16:13:37 +0000 |
commit | 9f4be8d2cda883229bac7d452c78555e0af9ca30 (patch) | |
tree | e4a43da869846fc0ea0118e7466e89b5323aeb09 | |
parent | af9788eb32f0743b465b8f07fbafd4e2fab998de (diff) | |
download | php-git-9f4be8d2cda883229bac7d452c78555e0af9ca30.tar.gz |
Fix test
-rwxr-xr-x | ext/spl/tests/array_iterator.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/spl/tests/array_iterator.phpt b/ext/spl/tests/array_iterator.phpt index 3e6c1e0f10..c66fc08104 100755 --- a/ext/spl/tests/array_iterator.phpt +++ b/ext/spl/tests/array_iterator.phpt @@ -2,6 +2,8 @@ SPL: ArrayIterator --SKIPIF-- <?php if (!extension_loaded("spl")) print "skip"; ?> +--INI-- +allow_call_time_pass_reference=1 --FILE-- <?php @@ -26,6 +28,9 @@ $obj = new ArrayObject(&$arr); foreach($obj as $ak=>$av) { foreach($obj as $bk=>$bv) { + if ($ak==0 && $bk==0) { + $arr[0] = "modify"; + } echo "$ak=>$av - $bk=>$bv\n"; } } @@ -89,10 +94,10 @@ echo "Done\n"; 0=>0 - 0=>0 0=>0 - 1=>1 0=>0 - 2=>2 -1=>1 - 0=>0 +1=>1 - 0=>modify 1=>1 - 1=>1 1=>1 - 2=>2 -2=>2 - 0=>0 +2=>2 - 0=>modify 2=>2 - 1=>1 2=>2 - 2=>2 ==Modify== |