This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _catch_fatal_error() { | |
$error = error_get_last(); | |
if (($error['type'] === E_ERROR) || ($error['type'] === E_USER_ERROR)|| ($error['type'] === E_USER_NOTICE)) { | |
// fatal error has occured | |
$msg = date("Y-m-d H:i:s")."|FATAL_ERROR: Request:" .$_SERVER['REQUEST_URI']."|". $error['type']. " |Msg : ".$error['message']." |File : ".$error['file']. " |Line : " . $error['line']; | |
echo $msg; | |
die(); | |
} | |
} | |
function _log_error( $num, $str, $file, $line, $context = null ) |