/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/classes/autoload_014.phpt
19 строк
358 B
Máté Kocsis
Deprecate calling ReflectionMethod::__construct() with 1 argument
05 дек 2023, 00:27
05 дек 2023, 00:27
688c6f3
Код
Авторство
О чём код?
--TEST-- Ensure the ReflectionMethod constructor triggers autoload. --FILE-- <?php spl_autoload_register(function ($name) { echo "In autoload: "; var_dump($name); }); try { new ReflectionMethod("UndefC", "test"); } catch (ReflectionException $e) { echo $e->getMessage(); } ?> --EXPECT-- In autoload: string(6) "UndefC" Class "UndefC" does not exist