Browse Source

Fix bug #62129 - rfc1867 crashes php even though turned off

Patch by gxd305 at gmail dot com
pull/389/merge
Arpad Ray 13 years ago
parent
commit
ba3234888d
  1. 2
      NEWS
  2. 7
      ext/session/session.c

2
NEWS

@ -75,6 +75,8 @@ PHP NEWS
should warning). (Yasuo)
. Fixed bug #49175 (mod_files.sh does not support hash bits). Patch by
oorza2k5 at gmail dot com (Yasuo)
. Fixed bug #62129 (rfc1867 crashes php even though turned off). (gxd305 at
gmail dot com)
- Sockets:
. Implemented FR #63472 (Setting SO_BINDTODEVICE with socket_set_option).

7
ext/session/session.c

@ -2246,8 +2246,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 *));

Loading…
Cancel
Save