summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocs/CHANGELOG.md1
-rw-r--r--lib/class/session.class.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 6e2bd9c6..775b05e9 100755
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -3,6 +3,7 @@ CHANGELOG
3.6-FUTURE
----------
+- Fixed long-standing issue affecting Synology users (patch by NigridsVa)
- Added support for MySQL sockets (based on patches by randomessence)
- Fixed some issues with the logic around memory_limit (reported by CableNinja)
- Fixed issue that sometimes removed ratings after catalog operations (reported
diff --git a/lib/class/session.class.php b/lib/class/session.class.php
index f34b7be7..4a64b199 100644
--- a/lib/class/session.class.php
+++ b/lib/class/session.class.php
@@ -336,6 +336,10 @@ class Session {
array('Session', 'write'),
array('Session', 'destroy'),
array('Session', 'gc'));
+
+ // Make sure session_write_close is called during the early part of
+ // shutdown, to avoid issues with object destruction.
+ register_shutdown_function('session_write_close');
}
/**