Skip to content

Commit fb53871

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Fix bug #62129 - rfc1867 crashes php even though turned off
2 parents 5c0ad4c + 0d3d739 commit fb53871

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/session/session.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -2294,8 +2294,11 @@ static PHP_MSHUTDOWN_FUNCTION(session) /* {{{ */
22942294
PHP_MSHUTDOWN(ps_mm) (SHUTDOWN_FUNC_ARGS_PASSTHRU);
22952295
#endif
22962296

2297-
/* restore the orig callback */
2298-
php_rfc1867_callback = php_session_rfc1867_orig_callback;
2297+
/* reset rfc1867 callbacks */
2298+
php_session_rfc1867_orig_callback = NULL;
2299+
if (php_rfc1867_callback == php_session_rfc1867_callback) {
2300+
php_rfc1867_callback = NULL;
2301+
}
22992302

23002303
ps_serializers[PREDEFINED_SERIALIZERS].name = NULL;
23012304
memset(&ps_modules[PREDEFINED_MODULES], 0, (MAX_MODULES-PREDEFINED_MODULES)*sizeof(ps_module *));

0 commit comments

Comments
 (0)