![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: ArrayIterator and values assigned by reference 3: --FILE-- 4: <?php 5: 6: $tmp = 1; 7: 8: $a = new ArrayIterator(); 9: $a[] = $tmp; 10: $a[] = &$tmp; 11: 12: echo "Done\n"; 13: ?> 14: --EXPECTF-- 15: Fatal error: Cannot assign by reference to overloaded object in %s on line %d