mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +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 (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
|
||||
zval_ptr_dtor(&soap_obj);
|
||||
soap_obj = NULL;
|
||||
}
|
||||
#else
|
||||
zval_ptr_dtor(&soap_obj);
|
||||
soap_obj = NULL;
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue