xref: /PHP-8.3/Zend/tests/bug75290.phpt (revision 1f6baa77)
1--TEST--
2Bug #75290 (debug info of Closures of internal functions contain garbage argument names)
3--FILE--
4<?php
5
6var_dump((new ReflectionFunction('sin'))->getClosure());
7
8var_dump(function ($someThing) {});
9
10?>
11--EXPECT--
12object(Closure)#2 (2) {
13  ["function"]=>
14  string(3) "sin"
15  ["parameter"]=>
16  array(1) {
17    ["$num"]=>
18    string(10) "<required>"
19  }
20}
21object(Closure)#2 (1) {
22  ["parameter"]=>
23  array(1) {
24    ["$someThing"]=>
25    string(10) "<required>"
26  }
27}
28