php-src/ext/spl/tests/iterator_049.phpt

26 lines
344 B
Plaintext
Raw Normal View History

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