/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/lang/bug25922.phpt
24 строки
481 B
Máté Kocsis
Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)
23 янв 2023, 12:52
Не верифицирован
23 янв 2023, 12:52
7936c80
Код
Авторство
О чём код?
--TEST-- Bug #25922 (SEGV in error_handler when context is destroyed) --INI-- error_reporting=2047 --FILE-- <?php function my_error_handler($error, $errmsg='', $errfile='', $errline=0, $errcontext='') { echo "$errmsg\n"; $errcontext = ''; } set_error_handler('my_error_handler'); function test() { echo "Undefined index here: '{$data['HTTP_HEADER']}'\n"; } test(); ?> --EXPECT-- Undefined variable $data Trying to access array offset on null Undefined index here: ''