In php I have my error_reporting
set to E_ALL
.
I was wondering if there was a centralized way to make php STOP execution if any warnings are hit, or if any exceptions are hit. Completely stop execution. I have run into many bugs where I have typos in variables and script continues execution.
I found Strict mode in PHP? which gives a good code solution but am looking for some sort of configuration whcih would allow me to accomplish the same thing. Does one exist?
But I am trying to avoid having to a custom error handler for all of my projects? Does anyone know of a way to do this perhaps in php.ini? Preferably there would be a way to configure php so it would display the warning or error and just stop..
Thank you.