File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ PHP NEWS
21
21
. Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong
22
22
result). (Laruence)
23
23
24
+ - Session:
25
+ . Fixed bug (segfault due to PS(mod_user_implemented) not be reseted
26
+ when close handler call exit). (Laruence)
27
+
28
+
24
29
?? ??? 2012, PHP 5.4.6
25
30
26
31
- CLI Server:
Original file line number Diff line number Diff line change @@ -99,16 +99,30 @@ PS_OPEN_FUNC(user)
99
99
100
100
PS_CLOSE_FUNC (user )
101
101
{
102
+ zend_bool bailout = 0 ;
102
103
STDVARS ;
103
104
104
105
if (!PS (mod_user_implemented )) {
105
106
/* already closed */
106
107
return SUCCESS ;
107
108
}
108
109
109
- retval = ps_call_handler (PSF (close ), 0 , NULL TSRMLS_CC );
110
+ zend_try {
111
+ retval = ps_call_handler (PSF (close ), 0 , NULL TSRMLS_CC );
112
+ } zend_catch {
113
+ bailout = 1 ;
114
+ PS (mod_user_implemented ) = 0 ;
115
+ } zend_end_try ();
116
+
110
117
PS (mod_user_implemented ) = 0 ;
111
118
119
+ if (bailout ) {
120
+ if (retval ) {
121
+ zval_ptr_dtor (& retval );
122
+ }
123
+ zend_bailout ();
124
+ }
125
+
112
126
FINISH ;
113
127
}
114
128
You can’t perform that action at this time.
0 commit comments