/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug60367.phpt
29 строк
494 B
Máté Kocsis
Implement ReflectionMethod::createFromMethodName()
18 июл 2023, 13:59
18 июл 2023, 13:59
f41220f
Код
Авторство
О чём код?
--TEST-- Bug #60367 (Reflection and Late Static Binding) --FILE-- <?php abstract class A { const WHAT = 'A'; public static function call() { echo static::WHAT; } } class B extends A { const WHAT = 'B'; } $method = ReflectionMethod::createFromMethodName("b::call"); $method->invoke(null); $method->invokeArgs(null, array()); $method = ReflectionMethod::createFromMethodName("A::call"); $method->invoke(null); $method->invokeArgs(null, array()); ?> --EXPECT-- BBAA