mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
27 lines
461 B
PHP
27 lines
461 B
PHP
--TEST--
|
|
--FILE--
|
|
<?php
|
|
function au($class) {
|
|
eval('class handler {
|
|
function handle($e) {
|
|
echo $e->getMessage()."\n";
|
|
}
|
|
}');
|
|
}
|
|
|
|
function __autoload($class) {
|
|
au($class);
|
|
}
|
|
|
|
//spl_autoload_register('au');
|
|
|
|
set_exception_handler(function($exception) {
|
|
$h = new handler();
|
|
$h->handle($exception);
|
|
});
|
|
|
|
throw new Exception('exception');
|
|
?>
|
|
--EXPECT--
|
|
exception
|