Setting the directive display_errors to true (while having error_reporting set to E_ALL) prints all errors that occured during the current request bofore returing the PHP output.
Since I'm sending headers in my PHP code, I get several more errors (sending header after content has been sent is not possible).
Now I'd like to add the error messages to the end of my page. There I'd like to show all errors that occurred (until then). Unfortunately error_get_last only retus the last error that occurred.
I first thought that set_error_handler might solve the problem, but I'm afraid that my error-logging does not work anymore:
It is important to remember that the standard PHP error handler is completely bypassed for the error types specified by error_types unless the callback function retus FALSE.
Besides that:
The following error types caot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the file where set_error_handler() is called.
But maybe they are also not available in error_get_last()
So is there a way to print all errors after the output of the generated content?
