/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug62384.phpt
21 строка
572 B
DanielEScherzer
ext/reflection: fix some typos [skip ci] (#16183)
03 окт 2024, 08:55
Не верифицирован
03 окт 2024, 08:55
8b8a673
Код
Авторство
О чём код?
--TEST-- Bug #62384 (Attempting to invoke a Closure more than once causes segfault) --FILE-- <?php $closure1 = function($val){ return $val; }; $closure2 = function($val){ return $val; }; $reflection_class = new ReflectionClass($closure1); $reflection_method = $reflection_class->getMethod('__invoke'); $arguments1 = array('hello'); $arguments2 = array('world'); var_dump($reflection_method->invokeArgs($closure1, $arguments1)); var_dump($reflection_method->invokeArgs($closure2, $arguments2)); ?> --EXPECT-- string(5) "hello" string(5) "world"