summaryrefslogtreecommitdiff
path: root/ext/spl/tests/array_006.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/array_006.phpt')
-rw-r--r--ext/spl/tests/array_006.phpt15
1 files changed, 6 insertions, 9 deletions
diff --git a/ext/spl/tests/array_006.phpt b/ext/spl/tests/array_006.phpt
index 2735432e26..e46ca25cc3 100644
--- a/ext/spl/tests/array_006.phpt
+++ b/ext/spl/tests/array_006.phpt
@@ -11,20 +11,17 @@ $arr = array(0=>0, 1=>1, 2=>2);
$obj = new ArrayIterator($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";
- }
+ foreach($obj as $bk=>$bv) {
+ if ($ak==0 && $bk==0) {
+ $arr[0] = "modify";
+ }
+ echo "$ak=>$av - $bk=>$bv\n";
+ }
}
?>
-===DONE===
-<?php exit(0); ?>
--EXPECT--
==Normal==
0=>0 - 0=>0
0=>0 - 1=>1
0=>0 - 2=>2
-===DONE===