/
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/bug67068.phpt
--TEST-- Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure) --FILE-- <?php class MyClass { public function method() {} } $object = new MyClass; $reflector = new \ReflectionMethod($object, 'method'); $closure = $reflector->getClosure($object); $closureReflector = new \ReflectionFunction($closure); var_dump($closureReflector->isClosure()); ?> --EXPECT-- bool(true)
Copyright ©2k19 -
Hexid
|
Tex7ure