Callback has to be restored in MSHUTDOWN

This commit is contained in:
Dmitry Stogov 2013-06-10 12:32:53 +04:00
parent fdd7379686
commit 336a8e1943

View 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 *));