In PHP I have built an error handler using set_exception_handler
function. It is executing my custom exception handler. I want PHP to execute default exception handler too after executing my handler. Here is my code.
function handleException( exception $e){
echo $e->getMessage();
restore_exception_handler();
}
set_exception_handler( 'handleException');
echo $e->getMessage()
is executed but then the default PHP exception handler doesn't get executed even after using restore_exception_handler
. So, How can I make it works?