1234567891011121314151617181920 |
- --TEST--
- Error message in error handler during compilation
- --FILE--
- <?php
- set_error_handler(function($_, $msg, $file) {
- var_dump($msg, $file);
- echo $undefined;
- });
- eval('class A { private function __invoke() { } }');
- ?>
- --EXPECTF--
- string(%d) "The magic method A::__invoke() must have public visibility"
- string(%d) "%s(%d) : eval()'d code"
- Warning: Undefined variable $undefined in %s on line %d
|