mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
First pass at moving `Zend/tests/bug*` tests to existing sub directories Work towards GH-15631
34 lines
573 B
PHP
34 lines
573 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) {});
|
|
|
|
?>
|
|
--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>"
|
|
}
|
|
}
|