mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
41 lines
575 B
PHP
Executable File
41 lines
575 B
PHP
Executable File
--TEST--
|
|
SPL: ArrayIterator with NULL key
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("spl")) print "skip"; ?>
|
|
--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===
|
|
--UEXPECTF--
|
|
object(ArrayIterator)#%d (1) {
|
|
[u"storage":u"ArrayIterator":private]=>
|
|
array(1) {
|
|
[u""]=>
|
|
NULL
|
|
}
|
|
}
|
|
array(1) {
|
|
[u""]=>
|
|
NULL
|
|
}
|
|
===DONE===
|