Annotation of embedaddon/php/ext/spl/tests/iterator_049.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SPL: ArrayIterator with NULL key
! 3: --FILE--
! 4: <?php
! 5:
! 6: $ar = new ArrayIterator(array(NULL=>NULL));
! 7: @var_dump($ar);
! 8: var_dump($ar->getArrayCopy());
! 9:
! 10: ?>
! 11: ===DONE===
! 12: <?php exit(0); ?>
! 13: --EXPECTF--
! 14: object(ArrayIterator)#%d (1) {
! 15: ["storage":"ArrayIterator":private]=>
! 16: array(1) {
! 17: [""]=>
! 18: NULL
! 19: }
! 20: }
! 21: array(1) {
! 22: [""]=>
! 23: NULL
! 24: }
! 25: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>