L.S.
I wrote a small piece of errorhandler code.
It works in some cases (user_warning).
It doesn't work when a fatal error occured. Then i got the old PHP error message.
Question: How can i handle ALL error with my errorhandler?
Here is the code:
<?
error_reporting(E_ALL);
function debugerror($errno,$errstr,$errfile,$errline){
print "$errno:::$errstr:::$errfile:::$errline";
}
$old_error_handler=set_error_handler("debugerror");
//the next line will generate a warning
trigger_error("Start debug",1024);
//the next line will generate an error
//in the old format. handler doesnot work
blah();
?>
Groeten,
Rein Velt