I think about using the set_error_handler() functionality in PHP to handle most of the PHP errors in one place (logging them to a file). From the documentation
set_error_handler()
In PHP 5.3 you could do it in a closure:
$that = $this; set_error_handler( function() use ($that) { $that->customErrorHandler(); } );