com php-src: Fixed bug #71986 (Nested foreach assign-by-reference creates broken variables): NEWS ext/soap/php_encoding.c
| From: | Xinchen Hui | Date: | Fri, 08 Apr 2016 09:57:51 +0000 |
| Subject: | com php-src: Fixed bug #71986 (Nested foreach assign-by-reference creates broken variables): NEWS ext/soap/php_encoding.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91658@lists.php.net to get a copy of this message | ||
Commit: c45f7b97a3252767b31d38fd7e761b9291ed2152
Author: Xinchen Hui <laruence@gmail.com> Fri, 8 Apr 2016 17:57:51 +0800
Parents: 94e889299bbbb2f174dc7b465eced85f7c0d70f7
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c45f7b97a3252767b31d38fd7e761b9291ed2152
Log:
Fixed bug #71986 (Nested foreach assign-by-reference creates broken variables)
Bugs:
https://bugs.php.net/71986
Changed paths:
M NEWS
M ext/soap/php_encoding.c
Diff:
diff --git a/NEWS b/NEWS
index 8121409..cccbc56 100644
--- a/NEWS
+++ b/NEWS
@@ -68,6 +68,10 @@ PHP NEWS
. Fixed bug #71820 (pg_fetch_object binds parameters before call
constructor). (Anatol)
+- SOAP:
+ . Fixed bug #71986 (Nested foreach assign-by-reference creates broken
+ variables). (Laruence)
+
- SPL:
. Fixed bug #71838 (Deserializing serialized SPLObjectStorage-Object can't
access properties in PHP). (Nikita)
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index 1fdc5a8..fc389f2 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -3512,6 +3512,7 @@ static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *type)
ht = Z_ARRVAL_P(array);
ZEND_HASH_FOREACH_VAL_IND(ht, tmp) {
+ ZVAL_DEREF(tmp);
if (Z_TYPE_P(tmp) == IS_OBJECT &&
Z_OBJCE_P(tmp) == soap_var_class_entry) {
zval *ztype;