com php-src: Fixed bug #70900 (SoapClient systematic out of memory error): NEWS ext/soap/php_sdl.c

From: Date: Thu, 12 Nov 2015 17:31:52 +0000
Subject: com php-src: Fixed bug #70900 (SoapClient systematic out of memory error): NEWS ext/soap/php_sdl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89834@lists.php.net to get a copy of this message
Commit: f8bf9bd86bdeef33a48e43d772d8a25a4fe3e6ff Author: Dmitry Stogov <dmitry@zend.com> Thu, 12 Nov 2015 20:31:52 +0300 Parents: 391087ed280f86f144ffa5a2b72eeeda3c271743 Branches: PHP-5.6 PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f8bf9bd86bdeef33a48e43d772d8a25a4fe3e6ff Log: Fixed bug #70900 (SoapClient systematic out of memory error) Bugs: https://bugs.php.net/70900 Changed paths: M NEWS M ext/soap/php_sdl.c Diff: diff --git a/NEWS b/NEWS index bd67637..a0b821f 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2015, PHP 5.6.17 +- SOAP: + . Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry) + 26 Nov 2015, PHP 5.6.16 - Core: diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 4ba1119..548a422 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -1157,7 +1157,9 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC) zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0); } - zend_hash_add(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), &tmpbinding, sizeof(sdlBindingPtr), NULL); + if (zend_hash_add(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), &tmpbinding, sizeof(sdlBindingPtr), NULL) != SUCCESS) { + zend_hash_next_index_insert(ctx.sdl->bindings, &tmpbinding, sizeof(sdlBindingPtr), NULL); + } trav= trav->next; }

« previous php.cvs (#89834) next »