]> granicus.if.org Git - php/commitdiff
Callback has to be restored in MSHUTDOWN
authorDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 08:32:53 +0000 (12:32 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 10 Jun 2013 08:32:53 +0000 (12:32 +0400)
ext/session/session.c

index a3be9a78c2004313a1a98fc480554c4df009db9a..d9989ba753f58b73a6871a449b5c8d05b1a0d3c9 100644 (file)
@@ -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 *));