<?php function user_exception_handler_01(Throwable $ex) { echo "01 Handled uncaught exception"; } function user_exception_handler_02(Throwable $ex) { set_exception_handler('user_exception_handler_01'); throw new RuntimeException("Not able to handle, throwing another exception from handler"); echo "Should never see this"; } function throw_it() { throw new RuntimeException('Expected unexpected happened'); } function call_throw_it() { throw_it(); } set_exception_handler('user_exception_handler_02'); call_throw_it();
You have javascript disabled. You will not be able to edit any code.