X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fhandler.php;h=74eb58753db0a3e35ddbf41d591776fd0ef98c18;hb=9d794e925ba857067b03efb20649c72eee9c5797;hp=692876664cef7848551183062db0a4c1b13a8666;hpb=4e025e412935b6b221a2d183ada05b7a22f4b9e7;p=mailer.git diff --git a/inc/handler.php b/inc/handler.php index 692876664c..74eb58753d 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]