Annotation of embedaddon/php/ext/spl/tests/fixedarray_006.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: FixedArray: Assigning objects
! 3: --FILE--
! 4: <?php
! 5:
! 6: $b = 10000;
! 7: $a = new SplFixedArray($b);
! 8:
! 9: try {
! 10: for ($i = 0; $i < 100; $i++) {
! 11: $a[] = new stdClass;
! 12: }
! 13: } catch (Exception $e) {
! 14: echo $e->getMessage(), "\n";
! 15: }
! 16:
! 17: print "ok\n";
! 18:
! 19: ?>
! 20: --EXPECT--
! 21: Index invalid or out of range
! 22: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>