From: Dmitry Stogov Date: Tue, 13 Jun 2017 14:15:47 +0000 (+0300) Subject: Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY) X-Git-Tag: php-7.0.21RC1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=648be8600ff89e1b0e4a4ad25cebad42b53bed6d;p=php Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY) --- diff --git a/NEWS b/NEWS index c39d6e2b28..1e6ffa13c2 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,10 @@ PHP NEWS - PHAR: . Fixed bug #74386 (Phar::__construct reflection incorrect). (villfa) +- SOAP + . Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY). + (Dmitry) + - Streams: . Fixed bug #74556 (stream_socket_get_name() returns '\0'). (Sara) diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 49fd363511..c53fa8a758 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -2623,7 +2623,7 @@ static sdlAttributePtr make_persistent_sdl_attribute(sdlAttributePtr attr, HashT pattr->extraAttributes = malloc(sizeof(HashTable)); zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete_extra_attribute_persistent, 1); - ZEND_HASH_FOREACH_STR_KEY_PTR(pattr->extraAttributes, key, tmp) { + ZEND_HASH_FOREACH_STR_KEY_PTR(attr->extraAttributes, key, tmp) { if (key) { pextra = malloc(sizeof(sdlExtraAttribute)); memset(pextra, 0, sizeof(sdlExtraAttribute));