1--TEST-- 2SPL: ArrayIterator without ArrayObject 3--INI-- 4error_reporting=2047 5--FILE-- 6<?php 7 8echo "==Normal==\n"; 9 10$arr = array(0=>0, 1=>1, 2=>2); 11$obj = new ArrayIterator($arr); 12 13foreach($obj as $ak=>$av) { 14 foreach($obj as $bk=>$bv) { 15 if ($ak==0 && $bk==0) { 16 $arr[0] = "modify"; 17 } 18 echo "$ak=>$av - $bk=>$bv\n"; 19 } 20} 21 22?> 23===DONE=== 24<?php exit(0); ?> 25--EXPECT-- 26==Normal== 270=>0 - 0=>0 280=>0 - 1=>1 290=>0 - 2=>2 30===DONE=== 31