Return to fixedarray_012.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / spl / tests |
1.1 misho 1: --TEST-- 2: SPL: FixedArray: Assigning the object to another variable using [] 3: --FILE-- 4: <?php 5: 6: $a = new SplFixedArray(100); 7: 8: try { 9: $b = &$a[]; 10: } catch (Exception $e) { 11: echo $e->getMessage(), "\n"; 12: } 13: 14: print "ok\n"; 15: 16: ?> 17: --EXPECT-- 18: Index invalid or out of range 19: ok