Exemple #1
0
function shutdown_handler()
{
    global $infra;
    if (($error = error_get_last()) && ($error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_STRICT)) > 0) {
        \sys\Rest::response(new \ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line']), null, null, null, $infra['debug']['level']);
    }
}
Exemple #2
0
function shutdown_handler()
{
    if (($error = error_get_last()) && ($error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_STRICT)) > 0) {
        \sys\Rest::response(new \ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line']), null, null, null, DEBUG_LEVEL);
    }
}