/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/bug71204.phpt
21 строка
644 B
Gina Peter Banyard
ext/spl: Deprecate passing spl_autoload_call() to spl_autoload_unregister() (#19422)
09 авг 2025, 13:23
Не верифицирован
09 авг 2025, 13:23
8c5c03e
Код
Авторство
О чём код?
--TEST-- Bug #71204 (segfault if clean spl_autoload_funcs while autoloading ) --FILE-- <?php spl_autoload_register(function ($name) { spl_autoload_unregister("spl_autoload_call"); }); spl_autoload_register(function ($name) { }); new A(); ?> --EXPECTF-- Deprecated: spl_autoload_unregister(): Using spl_autoload_call() as a callback for spl_autoload_unregister() is deprecated, to remove all registered autoloaders, call spl_autoload_unregister() for all values returned from spl_autoload_functions() in %s on line %d Fatal error: Uncaught Error: Class "A" not found in %s:%d Stack trace: #0 {main} thrown in %sbug71204.php on line %d