com php-src: Fixed bug #70079 (Segmentation fault after more than 100 SoapClient calls): NEWS ext/soap/php_http.c

From: Date: Thu, 16 Jul 2015 10:32:42 +0000
Subject: com php-src: Fixed bug #70079 (Segmentation fault after more than 100 SoapClient calls): NEWS ext/soap/php_http.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88004@lists.php.net to get a copy of this message
Commit: deeb6379cb26d457badae58df4f24bc30a334ebe Author: Xinchen Hui <laruence@php.net> Thu, 16 Jul 2015 18:32:42 +0800 Parents: c13124cc0f489f0fd8f1b3f3f7cab0f3331b2059 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=deeb6379cb26d457badae58df4f24bc30a334ebe Log: Fixed bug #70079 (Segmentation fault after more than 100 SoapClient calls) Bugs: https://bugs.php.net/70079 Changed paths: M NEWS M ext/soap/php_http.c Diff: diff --git a/NEWS b/NEWS index d29234b..940f6e3 100644 --- a/NEWS +++ b/NEWS @@ -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) diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index e0a749f..60dd9dd 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -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 &&

« previous php.cvs (#88004) next »