<?php
function myExceptionHandler (Exception $ex)
{
throw $ex;
}
set_exception_handler("myExceptionHandler");
throw new Exception("This should cause a fatal error and this message will be lost");
Fatal error: Uncaught Exception: This should cause a fatal error and this message will be lost in /in/00Xc0:10
Stack trace:
#0 {main}
thrown in /in/00Xc0 on line 10
Process exited with code 255.
Fatal error: Uncaught exception 'Exception' with message 'This should cause a fatal error and this message will be lost' in /in/00Xc0:10
Stack trace:
#0 {main}
thrown in /in/00Xc0 on line 10
Process exited with code 255.