mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
18 lines
353 B
PHP
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
|