Skip to content

Commit 0452609

Browse files
committed
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: Fixed bug #70900 (SoapClient systematic out of memory error)
2 parents cc10da4 + f8bf9bd commit 0452609

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug #70898, #70895 (null ptr deref and segfault with crafted callable).
77
(Anatol, Laruence)
88

9+
- SOAP:
10+
. Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry)
11+
912
- Streams/Socket
1013
. Add IPV6_V6ONLY constant / make it usable in stream contexts. (Bob)
1114

ext/soap/php_sdl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,9 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
11491149
zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0);
11501150
}
11511151

1152-
zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbinding);
1152+
if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbinding)) {
1153+
zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding);
1154+
}
11531155
trav= trav->next;
11541156
}
11551157

0 commit comments

Comments
 (0)