Fixed curl_close() behavior

This commit is contained in:
Dmitry Stogov 2014-05-13 16:00:44 +04:00
parent 7fcd4064c0
commit 3ba4f8263d

View file

@ -3136,7 +3136,9 @@ PHP_FUNCTION(curl_close)
return;
}
zend_list_close(Z_RES_P(zid));
if (Z_REFCOUNT_P(zid) <= 2) {
zend_list_close(Z_RES_P(zid));
}
}
/* }}} */