1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 10:12:18 +01:00

Fixed bug #70079 (Segmentation fault after more than 100 SoapClient calls)

This commit is contained in:
Xinchen Hui
2015-07-16 18:32:42 +08:00
parent c13124cc0f
commit deeb6379cb
2 changed files with 4 additions and 0 deletions

2
NEWS
View File

@@ -28,6 +28,8 @@
. Fixed bug #70058 (Build fails when building for i386). (Laruence)
- Soap:
. Fixed bug #70079 (Segmentation fault after more than 100 SoapClient
calls). (Laruence)
. Fixed bug #70032 (make_http_soap_request calls
zend_hash_get_current_key_ex(,,,NULL). (Laruence)

View File

@@ -507,6 +507,7 @@ try_again:
if (stream) {
php_stream_auto_cleanup(stream);
add_property_resource(this_ptr, "httpsocket", stream->res);
GC_REFCOUNT(stream->res)++;
add_property_long(this_ptr, "_use_proxy", use_proxy);
} else {
php_url_free(phpurl);
@@ -524,6 +525,7 @@ try_again:
zend_resource *ret = zend_register_resource(phpurl, le_url);
add_property_resource(this_ptr, "httpurl", ret);
GC_REFCOUNT(ret)++;
/*zend_list_addref(ret);*/
if (context &&