I searched the net to try and find a way to catch all the errors thrown by PHP (5.3)
I read the documentation and it seems that set_error_handler
is what I need, but it does not lead to fatal / parsing errors. I'm not sure if this is possible ...
Here is my source: https://github.com/tarnfeld/PHP-Error-Handler Feel free to fork / commit if you know the best solutions for all this.
Thanks, advanced!
Updated!
Using the answers below, I ended up writing an error handler, it takes care of E_ERROR | E_PARSE | E_WARNING | E_NOTICE and kill the script when it is deadly !:-)
source share