--TEST-- Bug #74454 (Wrong exception being thrown when using ReflectionMethod) --FILE-- getMessage(), PHP_EOL; } function load_file() { require __DIR__ . '/bug74454.inc'; } ?> --EXPECT-- ParseError: syntax error, unexpected token "if", expecting "function" or "const"