Is there any way I can get all notices, warnings, errors etc that PHP encounters stored in an array?
I need this for a custom error logger and I want it to catch also errors in addition to exceptions, which I already did.
I managed to find something for the last error, but that’s not enough: error_get_last
You will have to build a custom error handler:
http://www.php.net/manual/en/function.set-error-handler.php