summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-05-16 14:47:35 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-05-16 14:47:35 +0200
commit8193151b5ae9e78818926b646a7e8181de97f41c (patch)
tree81b99b2e3988aeefd42e9d5c984f6d886b0095df
parent705ba185bbeef0a55408ec6bd536a225b9a48b16 (diff)
Always log fatal errors that terminate the PHP script
-rw-r--r--program/include/rcube.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube.php b/program/include/rcube.php
index 272136fa8..694f28820 100644
--- a/program/include/rcube.php
+++ b/program/include/rcube.php
@@ -1057,7 +1057,8 @@ class rcube
return;
}
- if ($log && $arg['type'] && $arg['message']) {
+ if (($log || $terminate) && $arg['type'] && $arg['message']) {
+ $arg['fatal'] = $terminate;
self::log_bug($arg);
}
@@ -1085,7 +1086,7 @@ class rcube
}
// write error to local log file
- if ($level & 1) {
+ if (($level & 1) || !empty($arg_arr['fatal'])) {
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$post_query = '?_task='.urlencode($_POST['_task']).'&_action='.urlencode($_POST['_action']);
}