We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb5417b + da3660a commit d3ad2d7Copy full SHA for d3ad2d7
ext/session/mod_user.c
@@ -99,16 +99,30 @@ PS_OPEN_FUNC(user)
99
100
PS_CLOSE_FUNC(user)
101
{
102
+ zend_bool bailout = 0;
103
STDVARS;
104
105
if (!PS(mod_user_implemented)) {
106
/* already closed */
107
return SUCCESS;
108
}
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
+
117
PS(mod_user_implemented) = 0;
118
119
+ if (bailout) {
120
+ if (retval) {
121
+ zval_ptr_dtor(&retval);
122
+ }
123
+ zend_bailout();
124
125
126
FINISH;
127
128
0 commit comments