1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/ext/spl/tests/bug74372.phpt
2017-12-06 23:36:09 +01:00

18 lines
353 B
PHP

--TEST--
Bug #74372: autoloading file with syntax error uses next autoloader, may hide parse error
--FILE--
<?php
spl_autoload_register(function($class) {
eval("ha ha ha");
});
spl_autoload_register(function($class) {
echo "Don't call me.\n";
});
new Foo;
?>
--EXPECTF--
Parse error: syntax error, unexpected 'ha' (T_STRING) in %s on line %d