kailash
08-24-2005, 10:30 AM
This problem screwed up three hours of mine :|
<?php
function error_handler($errno, $errstr, $errfile, $errline) {
die('blah');
}
set_error_handler('error_handler');
foo();
?>
Calling the non existent function foo() is supposed to trigger the handler right?
All errors, warning,notices etc.. are caught by the handler, except for fatal errors. (E_ERROR) What am I doing wrong!???
btw, I'm using PHP5
<?php
function error_handler($errno, $errstr, $errfile, $errline) {
die('blah');
}
set_error_handler('error_handler');
foo();
?>
Calling the non existent function foo() is supposed to trigger the handler right?
All errors, warning,notices etc.. are caught by the handler, except for fatal errors. (E_ERROR) What am I doing wrong!???
btw, I'm using PHP5
