Halt execution on any error |
Hi,
I want to stop execution, whenever error occurs. Currently, for example, I have a variable undefined error, but script continues running after this line. Thanks in advance.
(09-03-2019, 06:15 AM)neuron Wrote: Hi, Convert all errors to exceptions by using PHP Code: set_error_handler('customErrorHandler'); Unhandled exceptions will stop the script. |
Welcome Guest, Not a member yet? Register Sign In |