From 5b81f9d92ec6c7cd093c06ca88a1e0a31f8fe364 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 7 Jun 2016 14:03:14 +0300 Subject: [PATCH] Fixed bug #72202 (curl_close doesn't close cURL handle) Now curl_close() forces connection close, independently of other links to the same resource. This reverts commit 3ba4f8263d7940312668f4c364c988a67be2461a. --- ext/curl/interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 90e2e30987..072c23e48d 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -3354,9 +3354,7 @@ PHP_FUNCTION(curl_close) return; } - if (Z_REFCOUNT_P(zid) <= 2) { - zend_list_close(Z_RES_P(zid)); - } + zend_list_close(Z_RES_P(zid)); } /* }}} */ -- 2.50.1