errmsg_045.phpt 403 B

123456789101112131415161718
  1. --TEST--
  2. Error message in error handler during compilation
  3. --FILE--
  4. <?php
  5. set_error_handler(function($_, $msg, $file) {
  6. var_dump($msg, $file);
  7. echo $undefined;
  8. });
  9. eval('class A { function a() {} function __construct() {} }');
  10. ?>
  11. --EXPECTF--
  12. string(50) "Redefining already defined constructor for class A"
  13. string(%d) "%s(%d) : eval()'d code"
  14. Notice: Undefined variable: undefined in %s on line %d