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();
?>
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();
?>