Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/07/2010, 15:50
Anarko
 
Fecha de Ingreso: febrero-2004
Mensajes: 1.987
Antigüedad: 20 años, 2 meses
Puntos: 22
set_error_handler() No vale para casos de "Fatal error" ?

Hola,

tengo esta y 100 funciones + que NUNCA capturan el error de will_this_undefined_function_raise_an_error.

He buscado en PHP.NET y 50 sitios + y no hallo solución alguna.

Siempre se dispara:

Fatal error: Call to undefined function will_this_undefined_function_raise_an_error() in F:\webs\test.php on line 20

Alguien conoce como capturarlo?

Cita:
<?php
set_error_handler("eh");
function eh($type, $msg, $file, $line, $context)
{
echo "<h1>Error!</h1>";
echo "An error occured while executing this script. Please contact the <a href=mailto:[email protected]>Webmaster</a> to report this error";

echo "<p>";
echo "Here is the information provided by the script";
echo "<hr><pre>";
echo "Error code : $type <br>";
echo "Error message : $message <br>";
echo "Script name and line number of error : $file:$line <br>";
echo "Variable state when error occurred: <br>";
print_r($context);
echo "</pre><hr>";
}

echo $QQQ;
will_this_undefined_function_raise_an_error();
?>