From c76c4ed08b4ca1225d57d7ed73b1672cd0592605 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 2 Jun 2016 20:53:42 +0200 Subject: [PATCH] Workaround PHP issue by calling closelog() on script shutdown when using log_driver=syslog (#5289) --- CHANGELOG | 1 + program/lib/Roundcube/rcube.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 6346d7c41..5729b0312 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -22,6 +22,7 @@ CHANGELOG Roundcube Webmail - Enigma: Fix malformed signed messages with force_7bit=true (#5292) - Fix searching by email address in contacts with multiple addresses (#5291) - Fix handling of --delete argument in moduserprefs.sh script (#5296) +- Workaround PHP issue by calling closelog() on script shutdown when using log_driver=syslog (#5289) RELEASE 1.2.0 ------------- diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index a49a71ff6..4de2dd300 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1003,6 +1003,10 @@ class rcube if (is_object($this->storage)) { $this->storage->close(); } + + if ($this->config->get('log_driver') == 'syslog') { + closelog(); + } } /**