summaryrefslogtreecommitdiff
path: root/ext/soap/php_encoding.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-28 11:20:43 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-28 11:20:43 +0300
commit4b5e182d61e974925ba558f3b5a666606cf85f33 (patch)
treed2ec08acc971c644dad0b9a0108c55726e22b8cb /ext/soap/php_encoding.c
parent14304faae26479763d14addafbd0ed975b358404 (diff)
parent7c96e974d912cfd019129e7d047dc5416fb43807 (diff)
downloadphp-git-4b5e182d61e974925ba558f3b5a666606cf85f33.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fixed reference-counting
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r--ext/soap/php_encoding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index a88d14fb1a..c5aa56f9e8 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -1344,6 +1344,7 @@ static void model_to_zval_object(zval *ret, sdlContentModelPtr model, xmlNodePtr
array_init(&array);
add_next_index_zval(&array, &val);
do {
+ ZVAL_NULL(&val);
if (node && node->children && node->children->content) {
if (model->u.element->fixed && strcmp(model->u.element->fixed, (char*)node->children->content) != 0) {
soap_error3(E_ERROR, "Encoding: Element '%s' has fixed value '%s' (value '%s' is not allowed)", model->u.element->name, model->u.element->fixed, node->children->content);