summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-06-10 12:32:53 +0400
committerDmitry Stogov <dmitry@zend.com>2013-06-10 12:32:53 +0400
commit336a8e1943af85bb49cb5986d897d967ba73dcc0 (patch)
tree2310f90017d57173b7b8c272f3082336424a4dbd
parentfdd73796866cd95ffc3af1864509c2af8d983949 (diff)
downloadphp-git-336a8e1943af85bb49cb5986d897d967ba73dcc0.tar.gz
Callback has to be restored in MSHUTDOWN
-rw-r--r--ext/session/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index a3be9a78c2..d9989ba753 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -2221,6 +2221,9 @@ static PHP_MSHUTDOWN_FUNCTION(session) /* {{{ */
PHP_MSHUTDOWN(ps_mm) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
#endif
+ /* restore the orig callback */
+ php_rfc1867_callback = php_session_rfc1867_orig_callback;
+
ps_serializers[PREDEFINED_SERIALIZERS].name = NULL;
memset(&ps_modules[PREDEFINED_MODULES], 0, (MAX_MODULES-PREDEFINED_MODULES)*sizeof(ps_module *));