1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/spl/tests/iterator_049.phpt
Gina Peter Banyard 9a1b8a785d Fix GH-20194: null offset deprecation not emitted for writes (#20238)
Based on a patch from @ndossche
2025-10-29 18:36:10 +00:00

23 lines
309 B
PHP

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