Prevent access to dead zval

This commit is contained in:
Dmitry Stogov 2006-09-22 13:39:17 +00:00
parent b2a44a9cc6
commit d365bd66c2

View file

@ -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 {