/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug79487.phpt
34 строки
549 B
Christoph M. Becker
Fix #79487: ::getStaticProperties() ignores property modifications
24 июн 2020, 11:05
24 июн 2020, 11:05
ef2130d
Код
Авторство
О чём код?
--TEST-- Bug #79487 (::getStaticProperties() ignores property modifications) --FILE-- <?php class Foo { public static $bar = 'orig'; } Foo::$bar = 'new'; $rc = new ReflectionClass('Foo'); var_dump($rc->getStaticProperties()); class A { public static $a = 'A old'; } class B extends A { public static $b = 'B old'; } $rc = new ReflectionClass(B::class); A::$a = 'A new'; var_dump($rc->getStaticProperties()); ?> --EXPECT-- array(1) { ["bar"]=> string(3) "new" } array(2) { ["b"]=> string(5) "B old" ["a"]=> string(5) "A new" }