/
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/bug74454.phpt
--TEST-- Bug #74454 (Wrong exception being thrown when using ReflectionMethod) --FILE-- <?php spl_autoload_register('load_file'); try { $x = new ReflectionMethod('A', 'b'); } catch (\Throwable $e) { echo get_class($e), ': ', $e->getMessage(), PHP_EOL; } function load_file() { require __DIR__ . '/bug74454.inc'; } ?> --EXPECT-- ParseError: syntax error, unexpected token "if", expecting "function" or "const"
Copyright ©2k19 -
Hexid
|
Tex7ure