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 3ba4f8263d.
This commit is contained in:
Dmitry Stogov 2016-06-07 14:03:14 +03:00
parent 214d4613f5
commit 5b81f9d92e

View 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));
}
/* }}} */