Skip to content

Commit f8bf9bd

Browse files
committed
Fixed bug #70900 (SoapClient systematic out of memory error)
1 parent 391087e commit f8bf9bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2015, PHP 5.6.17
44

5+
- SOAP:
6+
. Fixed bug #70900 (SoapClient systematic out of memory error). (Dmitry)
7+
58
26 Nov 2015, PHP 5.6.16
69

710
- Core:

ext/soap/php_sdl.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,9 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri TSRMLS_DC)
11571157
zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0);
11581158
}
11591159

1160-
zend_hash_add(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), &tmpbinding, sizeof(sdlBindingPtr), NULL);
1160+
if (zend_hash_add(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), &tmpbinding, sizeof(sdlBindingPtr), NULL) != SUCCESS) {
1161+
zend_hash_next_index_insert(ctx.sdl->bindings, &tmpbinding, sizeof(sdlBindingPtr), NULL);
1162+
}
11611163
trav= trav->next;
11621164
}
11631165

0 commit comments

Comments
 (0)