/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug74949.phpt
24 строки
388 B
Nikita Popov
Reindent phpt files
04 фев 2020, 00:52
04 фев 2020, 00:52
f8d7958
Код
Авторство
О чём код?
--TEST-- Bug #74949 (null pointer dereference in _function_string) --FILE-- <?php $f = function () {}; $r = new ReflectionMethod($f, "__invoke"); unset($f); echo $r, "\n"; try { echo $r->getPrototype(); } catch (Exception $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Method [ <internal> public method __invoke ] { } Method Closure::__invoke does not have a prototype