php-src/ext/spl/tests/iterator_049.phpt
2012-10-10 10:27:49 +08:00

26 lines
344 B
PHP

--TEST--
SPL: ArrayIterator with NULL key
--FILE--
<?php
$ar = new ArrayIterator(array(NULL=>NULL));
@var_dump($ar);
var_dump($ar->getArrayCopy());
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(ArrayIterator)#%d (1) {
["storage":"ArrayIterator":private]=>
array(1) {
[""]=>
NULL
}
}
array(1) {
[""]=>
NULL
}
===DONE===