com php-src: Fixed curl_close() behavior: ext/curl/ interface.c
| From: | Dmitry Stogov | Date: | Tue, 13 May 2014 12:00:44 +0000 |
| Subject: | com php-src: Fixed curl_close() behavior: ext/curl/ interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78313@lists.php.net to get a copy of this message | ||
Commit: 3ba4f8263d7940312668f4c364c988a67be2461a
Author: Dmitry Stogov <dmitry@zend.com> Tue, 13 May 2014 16:00:44 +0400
Parents: 7fcd4064c01d607958456f2771b12a8ade508208
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ba4f8263d7940312668f4c364c988a67be2461a
Log:
Fixed curl_close() behavior
Changed paths:
M ext/curl/interface.c
Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 48fc27a..15e6133 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -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));
+ }
}
/* }}} */