/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/bug70852.phpt
19 строк
479 B
Alexandre Daubois
core: Deprecate using `null` as an array offset and when calling `array_key_exists()` (#19511)
05 сен 2025, 00:12
Не верифицирован
05 сен 2025, 00:12
49e3956
Код
Авторство
О чём код?
--TEST-- Bug #70852 Segfault getting NULL offset of an ArrayObject --FILE-- <?php $y = new ArrayObject(); var_dump($y[NULL]); var_dump($y[NULL]++); ?> --EXPECTF-- Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d Warning: Undefined array key "" in %s on line %d NULL Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d Warning: Undefined array key "" in %s on line %d NULL