Verified Commit c980f8d6 authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:sparkles: feat(error): Add trigger_error when session is destroyed


Add trigger_error when session is destroyed

Signed-off-by: Jonathan Swaelens's avatarJonathan Swaelens <jonathan.swaelens@fusiondirectory.org>
Showing with 1 addition and 0 deletions
+1 -0
...@@ -271,6 +271,7 @@ function gosaRaiseError ($errno, $errstr, $errfile, $errline) ...@@ -271,6 +271,7 @@ function gosaRaiseError ($errno, $errstr, $errfile, $errline)
/* Flush in case of fatal errors */ /* Flush in case of fatal errors */
if (preg_match('/^fatal/i', $errstr) || (PHP_ERROR_FATAL == 'TRUE')) { if (preg_match('/^fatal/i', $errstr) || (PHP_ERROR_FATAL == 'TRUE')) {
trigger_error($errstr);
session::destroy('Fatal error'); session::destroy('Fatal error');
if (PHP_ERROR_FATAL == 'TRUE') { if (PHP_ERROR_FATAL == 'TRUE') {
$error_collector = str_replace('display: none;', '', $error_collector); $error_collector = str_replace('display: none;', '', $error_collector);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment