bug74372.phpt 353 B

1234567891011121314151617
  1. --TEST--
  2. Bug #74372: autoloading file with syntax error uses next autoloader, may hide parse error
  3. --FILE--
  4. <?php
  5. spl_autoload_register(function($class) {
  6. eval("ha ha ha");
  7. });
  8. spl_autoload_register(function($class) {
  9. echo "Don't call me.\n";
  10. });
  11. new Foo;
  12. ?>
  13. --EXPECTF--
  14. Parse error: syntax error, unexpected identifier "ha" in %s on line %d