I'd like to be able to catch die()
and exit()
messages. Is this possible? I'm hoping for something similar to set_error_handler
and set_exception_handler
. I've looked at register_shutdown_function()
but it seems to contain no context for the offending die()
and exit()
calls.
I realize that die()
and exit()
are bad ways to handle errors. I am not looking to be told not to do this. :) I am creating a generic system and want to be able to gracefully log exit()
and die()
if for some reason someone (not me) decides this is a good idea to do.