Setting the directive display_errors to true (while having error_reporting set to E_ALL) prints all errors that occured durin
display_errors
true
error_reporting
E_ALL
There is a discussion about this here and here (amongst others), with the second answer on the latter list using a mix of set_error_handler() with register_shutdown_function() being a good solution.
set_error_handler()
register_shutdown_function()