From: Xinchen Hui Date: Mon, 30 Nov 2015 02:50:23 +0000 (+0800) Subject: Fixed bug #70993 (Array key references break argument processing) X-Git-Tag: php-7.0.1RC1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5df6f9f20ee571caf30c005fc2eae5eb780ba002;p=php Fixed bug #70993 (Array key references break argument processing) --- diff --git a/NEWS b/NEWS index e19defa0f4..c5aa1f30fd 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 4c746aaf29..b6fc5a0f3d 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();