From: cajus Date: Wed, 22 Jun 2005 06:12:57 +0000 (+0000) Subject: Added handling of fatal errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e725ac395753083bb6f0546472c15ced938c20e9;p=gosa.git Added handling of fatal errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@793 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 2c90b4f5c..308376d58 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1615,6 +1615,13 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) /* Write to syslog */ gosa_log ("PHP error: $errstr ($errfile, line $errline)"); + + /* Flush in case of fatal errors */ + if (preg_match('/^fatal/i', $errstr)){ + echo $error_collector.""; + flush(); + exit; + } }