From 5df6f9f20ee571caf30c005fc2eae5eb780ba002 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 30 Nov 2015 10:50:23 +0800 Subject: [PATCH] Fixed bug #70993 (Array key references break argument processing) --- NEWS | 4 ++++ ext/soap/soap.c | 1 + 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index e19defa0f4503..c5aa1f30fddba 100644 --- a/NEWS +++ b/NEWS @@ -50,6 +50,10 @@ PHP NEWS - Streams/Socket . Add IPV6_V6ONLY constant / make it usable in stream contexts. (Bob) +- Soap: + . Fixed bug #70993 (Array key references break argument processing). + (Laruence) + 26 Nov 2015, PHP 7.0.0 RC 8 - Core: diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 4c746aaf29dce..b6fc5a0f3dabf 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2941,6 +2941,7 @@ PHP_METHOD(SoapClient, __call) real_args = safe_emalloc(sizeof(zval), arg_count, 0); ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args), param) { /*zval_add_ref(param);*/ + ZVAL_DEREF(param); ZVAL_COPY_VALUE(&real_args[i], param); i++; } ZEND_HASH_FOREACH_END();