summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-03-14 22:59:54 +0100
committerAnatol Belski <ab@php.net>2018-03-14 22:59:54 +0100
commitefd0e7222b439902e2099cc2e1aed60cdf3b9929 (patch)
tree4b0ab4713ca424485cc691996f5397bd5487781f
parent7bcd55c26425c39b9f55ec9c96091124876b04c8 (diff)
downloadphp-git-efd0e7222b439902e2099cc2e1aed60cdf3b9929.tar.gz
Reduce var scope
-rw-r--r--ext/soap/soap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 11ca1c76ee..01ecc9a540 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -1532,7 +1532,7 @@ PHP_METHOD(SoapServer, handle)
xmlCharEncodingHandlerPtr old_encoding;
HashTable *old_class_map, *old_typemap;
int old_features;
- zval tmp_soap, *tmp_soap_p;
+ zval tmp_soap;
SOAP_SERVER_BEGIN_CODE();
@@ -1696,7 +1696,7 @@ PHP_METHOD(SoapServer, handle)
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
/* If persistent then set soap_obj from from the previous created session (if available) */
if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
- zval *session_vars;
+ zval *session_vars, *tmp_soap_p;
if (PS(session_status) != php_session_active &&
PS(session_status) != php_session_disabled) {
@@ -1768,7 +1768,7 @@ PHP_METHOD(SoapServer, handle)
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
/* If session then update session hash with new object */
if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
- zval *session_vars = &PS(http_session_vars);
+ zval *session_vars = &PS(http_session_vars), *tmp_soap_p;
ZVAL_DEREF(session_vars);
if (Z_TYPE_P(session_vars) == IS_ARRAY &&