mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
26 lines
344 B
PHP
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===
|