]> granicus.if.org Git - php/commitdiff
Fixed reference-counting
authorDmitry Stogov <dmitry@zend.com>
Thu, 28 Dec 2017 08:19:52 +0000 (11:19 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 28 Dec 2017 08:19:52 +0000 (11:19 +0300)
ext/soap/php_encoding.c

index d5461f80d0d230388a294794a754cbc0595949f8..824ebe48c200991d5089b702346b47865a7e2923 100644 (file)
@@ -1354,6 +1354,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);