X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fhandler.php;h=84176c10b753b85329d780bc8d5c7da3e4f002c7;hp=09fc98937897af00392d8b0f9285ea81073e5d48;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hpb=f97a999e0737c0007ae9c3c26dfef49f75a175ac diff --git a/inc/handler.php b/inc/handler.php index 09fc989378..84176c10b7 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); - } + reportBug($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]