From e725ac395753083bb6f0546472c15ced938c20e9 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 22 Jun 2005 06:12:57 +0000 Subject: [PATCH] Added handling of fatal errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@793 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } } -- 2.30.2