/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/bug71236.phpt
29 строк
522 B
Tim Düsterhus
Include the source location in Closure names (#13550)
12 апр 2024, 19:21
Не верифицирован
12 апр 2024, 19:21
08b2ab2
Код
Авторство
О чём код?
--TEST-- Bug #71236: Second call of spl_autoload_register() does nothing if it has no arguments --FILE-- <?php spl_autoload_register(function ($class) {}); spl_autoload_register(); var_dump(spl_autoload_functions()); ?> --EXPECTF-- array(2) { [0]=> object(Closure)#%d (4) { ["name"]=> string(%d) "{closure:%s:%d}" ["file"]=> string(%d) "%s" ["line"]=> int(%d) ["parameter"]=> array(1) { ["$class"]=> string(10) "<required>" } } [1]=> string(12) "spl_autoload" }