diff options
author | Arpad Ray <arraypad@gmail.com> | 2013-07-17 11:09:37 +0100 |
---|---|---|
committer | Arpad Ray <arraypad@gmail.com> | 2013-07-17 11:09:37 +0100 |
commit | fb53871d944a2c0f8a763bda9e4db8acf8e8df02 (patch) | |
tree | 6851a6e336be15570d148ce80f68f533421d184c | |
parent | 5c0ad4c72ce1ff732a10967182ecc73117bbe7ce (diff) | |
parent | 0d3d739bf784d215dc3b8c45ab2a4fafd2a590b3 (diff) | |
download | php-git-fb53871d944a2c0f8a763bda9e4db8acf8e8df02.tar.gz |
Merge branch 'PHP-5.5'
* PHP-5.5:
Fix bug #62129 - rfc1867 crashes php even though turned off
-rw-r--r-- | ext/session/session.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 341b8fb549..e992f31d2f 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -2294,8 +2294,11 @@ 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; + /* reset rfc1867 callbacks */ + php_session_rfc1867_orig_callback = NULL; + if (php_rfc1867_callback == php_session_rfc1867_callback) { + php_rfc1867_callback = NULL; + } ps_serializers[PREDEFINED_SERIALIZERS].name = NULL; memset(&ps_modules[PREDEFINED_MODULES], 0, (MAX_MODULES-PREDEFINED_MODULES)*sizeof(ps_module *)); |