Added ErrorException handler.
parent
52888f193d
commit
b5bd57a43b
|
@ -18,3 +18,7 @@ spl_autoload_register(function($class)
|
|||
}
|
||||
});
|
||||
|
||||
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
|
||||
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
|
||||
}
|
||||
set_error_handler("exception_error_handler");
|
Loading…
Reference in New Issue