mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
8023204d21
Autoloader 101: Don't throw if you fail. PHP will throw for you.
13 lines
309 B
PHP
13 lines
309 B
PHP
--TEST--
|
|
Bug #38325 (spl_autoload_register() gaves wrong line for "class not found")
|
|
--FILE--
|
|
<?php
|
|
spl_autoload_register();
|
|
new ThisClassDoesNotExistEverFoo();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Class 'ThisClassDoesNotExistEverFoo' not found in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line 3
|