Annotation of embedaddon/php/ext/spl/tests/bug53362.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #53362 (Segmentation fault when extending SplFixedArray)
! 3: --FILE--
! 4: <?php
! 5:
! 6: class obj extends SplFixedArray{
! 7: public function offsetSet($offset, $value) {
! 8: var_dump($offset);
! 9: }
! 10: }
! 11:
! 12: $obj = new obj;
! 13:
! 14: $obj[]=2;
! 15: $obj[]=2;
! 16: $obj[]=2;
! 17:
! 18: ?>
! 19: --EXPECTF--
! 20: NULL
! 21: NULL
! 22: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>