mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Prevent access to dead zval
This commit is contained in:
parent
b2a44a9cc6
commit
d365bd66c2
1 changed files with 2 additions and 0 deletions
|
@ -2046,9 +2046,11 @@ PHP_METHOD(SoapServer, handle)
|
||||||
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
|
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
|
||||||
if (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
|
if (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
|
||||||
zval_ptr_dtor(&soap_obj);
|
zval_ptr_dtor(&soap_obj);
|
||||||
|
soap_obj = NULL;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
zval_ptr_dtor(&soap_obj);
|
zval_ptr_dtor(&soap_obj);
|
||||||
|
soap_obj = NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue