com php-src: Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY): NEWS ext/soap/php_sdl.c
| From: | Dmitry Stogov | Date: | Tue, 13 Jun 2017 14:15:47 +0000 |
| Subject: | com php-src: Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY): NEWS ext/soap/php_sdl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98074@lists.php.net to get a copy of this message | ||
Commit: 648be8600ff89e1b0e4a4ad25cebad42b53bed6d
Author: Dmitry Stogov <dmitry@zend.com> Tue, 13 Jun 2017 17:15:47 +0300
Parents: c4d7cfa53631dcfb5e4dd3b736324ad3d15f2f59
Branches: PHP-7.0 PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=648be8600ff89e1b0e4a4ad25cebad42b53bed6d
Log:
Fixed bug #74679 (Incorrect conversion array with WSDL_CACHE_MEMORY)
Bugs:
https://bugs.php.net/74679
Changed paths:
M NEWS
M ext/soap/php_sdl.c
Diff:
diff --git a/NEWS b/NEWS
index c39d6e2..1e6ffa1 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 49fd363..c53fa8a 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));