summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/session.class.php4
1 files changed, 4 insertions, 0 deletions
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');
}
/**