/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug80299.phpt
15 строк
374 B
Tim Düsterhus
Include the source location in Closure names (#13550)
12 апр 2024, 19:21
Не верифицирован
12 апр 2024, 19:21
08b2ab2
Код
Авторство
О чём код?
--TEST-- Bug #80299: ReflectionFunction->invokeArgs confused in arguments --FILE-- <?php $bar = new DateTime(); $args = [1, &$bar]; $function = function (int &$foo, DateTimeInterface &$bar) {}; (new ReflectionFunction($function))->invokeArgs($args); ?> --EXPECTF-- Warning: {closure:%s:%d}(): Argument #1 ($foo) must be passed by reference, value given in %s on line %d