class foo { public function __construct(){ throw new Exception(); } } function e($e){ throw $e; } set_exception_handler('e'); $foo = new foo(); // Fatal error: Exception thrown without a stack frame in Unknown on line 0