mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
55f0596fab
. Upgrade RegexIterator capabilities, see docu . Update docu . Add test (which fails right now: iterator_049.phpt) . Add tests for new functionality
25 lines
345 B
PHP
Executable File
25 lines
345 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)#1 (1) {
|
|
[""]=>
|
|
NULL
|
|
}
|
|
array(1) {
|
|
[""]=>
|
|
NULL
|
|
}
|
|
===DONE===
|