Saludos.
 
He estado leyendo un poco sobre el manejo de errores en PHP y dice que las directivas más importantes para el reporte de errores son: 
error_reporting, 
display_errors y 
log_errors. 
En mi servidor tengo a 
display_errors y a 
log_errors ensendidos pero 
error_reporting tiene el valor de 2039, eso quiere decir que está funcionando? 
Otra cosa que leí dice:
"
The display_errors and log_errors directives can be used to determine how errors are reported. If display_errors is turned on, errors are outputted to the script’s output; generally speaking, this is not desirable in a production environment. Under those circumstances, you will instead want to turn on log_errors, which causes errors to be written to your web server’s error log."
Como hago para ver el 
web server’s error log? 
También dice:
"
Your scripts can declare a catch-all function that is called by PHP when an error condition occurs by calling the set_error_handler() function:   Código PHP:
        $oldErrorHandler = '';
    function myErrorHandler ($errNo, $errStr, $errFile, $errLine, $errContext) {
        logToFile("Error $errStr in $errFile at line $errLine");
        // Call the old error handler
        if ($oldErrorHandler) {
            $oldErrorHandler ($errNo, $errStr, $errFile, $errLine, $errContext);
        }
    }
    
    $oldErrorHandler = set_error_handler ($oldErrorHandler); 
    
  As you can see, the function name of the old error handler (if any) is returned by the call to set_error_handler() —this allows you to stack several error handlers on top of each other, thus making it possible to have different functions handle different kinds of errors.-" 
De lo que entiendo ahí... 
Your scripts can declare a catch-all function that is called by PHP when an error condition occurs by calling the set_error_handler() set_error_handler es abstracta? O uno la llama y ya? Y cuando abría que llamarla?. Esta parte me pareció muy complicada, si alguien la entiende este un tema que sería bueno que todos supiéramos.