mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #71986 (Nested foreach assign-by-reference creates broken variables)
This commit is contained in:
parent
94e889299b
commit
c45f7b97a3
2 changed files with 5 additions and 0 deletions
4
NEWS
4
NEWS
|
@ -68,6 +68,10 @@ PHP NEWS
|
||||||
. Fixed bug #71820 (pg_fetch_object binds parameters before call
|
. Fixed bug #71820 (pg_fetch_object binds parameters before call
|
||||||
constructor). (Anatol)
|
constructor). (Anatol)
|
||||||
|
|
||||||
|
- SOAP:
|
||||||
|
. Fixed bug #71986 (Nested foreach assign-by-reference creates broken
|
||||||
|
variables). (Laruence)
|
||||||
|
|
||||||
- SPL:
|
- SPL:
|
||||||
. Fixed bug #71838 (Deserializing serialized SPLObjectStorage-Object can't
|
. Fixed bug #71838 (Deserializing serialized SPLObjectStorage-Object can't
|
||||||
access properties in PHP). (Nikita)
|
access properties in PHP). (Nikita)
|
||||||
|
|
|
@ -3512,6 +3512,7 @@ static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *type)
|
||||||
ht = Z_ARRVAL_P(array);
|
ht = Z_ARRVAL_P(array);
|
||||||
|
|
||||||
ZEND_HASH_FOREACH_VAL_IND(ht, tmp) {
|
ZEND_HASH_FOREACH_VAL_IND(ht, tmp) {
|
||||||
|
ZVAL_DEREF(tmp);
|
||||||
if (Z_TYPE_P(tmp) == IS_OBJECT &&
|
if (Z_TYPE_P(tmp) == IS_OBJECT &&
|
||||||
Z_OBJCE_P(tmp) == soap_var_class_entry) {
|
Z_OBJCE_P(tmp) == soap_var_class_entry) {
|
||||||
zval *ztype;
|
zval *ztype;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue