com php-src: Fixed reference-counting: ext/soap/php_encoding .c

From: Date: Thu, 28 Dec 2017 08:19:52 +0000
Subject: com php-src: Fixed reference-counting: ext/soap/php_encoding .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100705@lists.php.net to get a copy of this message
Commit: 7c96e974d912cfd019129e7d047dc5416fb43807 Author: Dmitry Stogov <dmitry@zend.com> Thu, 28 Dec 2017 11:19:52 +0300 Parents: dc3822c3431ec3229ad439c3e4e4b956218777af Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7c96e974d912cfd019129e7d047dc5416fb43807 Log: Fixed reference-counting Changed paths: M ext/soap/php_encoding.c Diff: diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index d5461f8..824ebe4 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding..c @@ -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);

« previous php.cvs (#100705) next »