]> granicus.if.org Git - php/commitdiff
Fixed bug #72202 (curl_close doesn't close cURL handle)
authorDmitry Stogov <dmitry@zend.com>
Tue, 7 Jun 2016 11:03:14 +0000 (14:03 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 7 Jun 2016 11:03:14 +0000 (14:03 +0300)
Now curl_close() forces connection close, independently of other links to the same resource.

This reverts commit 3ba4f8263d7940312668f4c364c988a67be2461a.

ext/curl/interface.c

index 90e2e30987531fde141dcf0b30af5fd36acdd763..072c23e48d27dc26e4af160121cb7a2258d9ec17 100644 (file)
@@ -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));
 }
 /* }}} */