From b853299cba1d56840e74667aba20bf1577a147ba Mon Sep 17 00:00:00 2001 From: Isaac Bennetch Date: Sat, 28 Jan 2017 22:36:19 -0500 Subject: [PATCH] Add closelog() call after writing to syslog. See http://php.net/manual/en/function.syslog.php#79554 and our issue #6146 Signed-off-by: Isaac Bennetch --- libraries/DatabaseInterface.php | 1 + libraries/Logging.php | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/DatabaseInterface.php b/libraries/DatabaseInterface.php index 7823c03668..d5445ac6cd 100644 --- a/libraries/DatabaseInterface.php +++ b/libraries/DatabaseInterface.php @@ -280,6 +280,7 @@ class DatabaseInterface 'SQL[' . basename($_SERVER['SCRIPT_NAME']) . ']: ' . sprintf('%0.3f', $time) . ' > ' . $query ); + closelog(); } } diff --git a/libraries/Logging.php b/libraries/Logging.php index d8d018028e..09c225df94 100644 --- a/libraries/Logging.php +++ b/libraries/Logging.php @@ -37,6 +37,7 @@ class Logging 'user denied: ' . $user . ' (' . $status . ') from ' . PMA_getIp() ); + closelog(); } } }