dis-bench / src /php /php-src /Zend /tests /closures /bug75290.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
573 Bytes
--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) {});
?>
--EXPECTF--
object(Closure)#%d (2) {
["function"]=>
string(3) "sin"
["parameter"]=>
array(1) {
["$num"]=>
string(10) "<required>"
}
}
object(Closure)#%d (4) {
["name"]=>
string(%d) "{closure:%s:%d}"
["file"]=>
string(%d) "%s"
["line"]=>
int(%d)
["parameter"]=>
array(1) {
["$someThing"]=>
string(10) "<required>"
}
}