Do not throw exception in exception_handler function and __destruct without try-catch
Do NOT throw exception in exception_handler function, if you do it like below, the error “Fatal error: Exception thrown without a stack frame in Unknown on line 0” will occur set_exception_handler(‘handle_exception’); function handle_exception($e) { throw new Exception(‘throwed in handle_exception’); } throw new Exception(‘error occur’); if you try-catch the Exception in exception_handler function, it will be … Read more