mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
b4196ae9df
"Fix" in the sense of "not crash". We aren't able to actually display the default value for this case, as there's no way to fetch the relevant information right now.
17 lines
361 B
PHP
17 lines
361 B
PHP
--TEST--
|
|
Fetching default value of an internal trampoline function with userland arginfo
|
|
--FILE--
|
|
<?php
|
|
$closure = function ($b = 0) {};
|
|
$ro = new ReflectionObject($closure);
|
|
$rm = $ro->getMethod('__invoke');
|
|
echo $rm, "\n";
|
|
?>
|
|
--EXPECT--
|
|
Method [ <internal> public method __invoke ] {
|
|
|
|
- Parameters [1] {
|
|
Parameter #0 [ <optional> $b = <default> ]
|
|
}
|
|
}
|