/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug75186.phpt
--TEST-- Bug #75186: Inconsistent reflection of Closure:::__invoke() --FILE-- <?php $rc = new ReflectionClass(Closure::class); foreach ($rc->getMethods() as $method) { if ($method->name == '__invoke') { var_dump($method); $method->invoke( function($what) { echo "Hello $what!\n"; }, "World" ); } } ?> --EXPECTF-- object(ReflectionMethod)#%d (2) { ["name"]=> string(8) "__invoke" ["class"]=> string(7) "Closure" } Hello World!
Copyright ©2k19 -
Hexid
|
Tex7ure