X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fhandler.php;h=7ef0c3be99f4bde673b03c769deeb754a0e8339c;hb=7e0bc83962a11cdb5cc9f75d3b04f2bea5c1b09a;hp=e1e95237404c8f0a6dd8cef7788a39e43b38ce63;hpb=e2212ac50663d7da7b77040270d55c90b66d65af;p=mailer.git diff --git a/inc/handler.php b/inc/handler.php index e1e9523740..7ef0c3be99 100644 --- a/inc/handler.php +++ b/inc/handler.php @@ -1,7 +1,7 @@ the main page to continue."); - } else { - // No debug extension found, so regular output - debug_report_bug($msg); - } + debug_report_bug($errfile, $errline, $message); +} + +// Init error handler +function initErrorHandler () { + enableExitOnError(false); +} + +// Enable exit on error +function enableExitOnError ($enable=true) { + $GLOBALS['error_handler']['exit_on_error'] = $enable; } // [EOF]