Annotation of embedaddon/php/ext/spl/tests/fixedarray_013.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: FixedArray: Passing the object using [] as parameter
! 3: --FILE--
! 4: <?php
! 5:
! 6: $a = new SplFixedArray(100);
! 7:
! 8:
! 9: function test(SplFixedArray &$arr) {
! 10: print "ok\n";
! 11: }
! 12:
! 13: try {
! 14: test($a[]);
! 15: } catch (Exception $e) {
! 16: echo $e->getMessage(), "\n";
! 17: }
! 18:
! 19: ?>
! 20: --EXPECT--
! 21: Index invalid or out of range
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>