mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #40609 (Segfaults when using more than one SoapVar in a request). (Rob, Dmitry)
This commit is contained in:
parent
255c6a71d7
commit
015a5655df
4 changed files with 60 additions and 1 deletions
|
@ -2888,8 +2888,18 @@ static xmlNodePtr to_xml_any(encodeTypePtr type, zval *data, int style, xmlNodeP
|
|||
ret = xmlNewTextLen(BAD_CAST(Z_STRVAL(tmp)), Z_STRLEN(tmp));
|
||||
zval_dtor(&tmp);
|
||||
}
|
||||
|
||||
ret->name = xmlStringTextNoenc;
|
||||
xmlAddChild(parent, ret);
|
||||
ret->parent = parent;
|
||||
ret->doc = parent->doc;
|
||||
ret->prev = parent->last;
|
||||
ret->next = NULL;
|
||||
if (parent->last) {
|
||||
parent->last->next = ret;
|
||||
} else {
|
||||
parent->children = ret;
|
||||
}
|
||||
parent->last = ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue