php-src/Zend/tests/bug75290.phpt
2022-08-12 12:22:55 +02:00

28 lines
472 B
PHP

--TEST--
Bug #75290 (debug info of Closures of internal functions contain garbage argument names)
--FILE--
<?php
var_dump((new ReflectionFunction('sin'))->getClosure());
var_dump(function ($someThing) {});
?>
--EXPECT--
object(Closure)#2 (2) {
["function"]=>
string(3) "sin"
["parameter"]=>
array(1) {
["$num"]=>
string(10) "<required>"
}
}
object(Closure)#2 (1) {
["parameter"]=>
array(1) {
["$someThing"]=>
string(10) "<required>"
}
}