com php-src: Fix bug #71694: NEWS ext/curl/interface.c
| From: | Nikita Popov | Date: | Tue, 01 Mar 2016 22:31:58 +0000 |
| Subject: | com php-src: Fix bug #71694: NEWS ext/curl/interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91220@lists.php.net to get a copy of this message | ||
Commit: 0bbea605241932eba24d82378b6ea5fcf8307029
Author: mpyw <ryosuke_i_628@yahoo.co.jp> Tue, 1 Mar 2016 15:30:04 +0900
Committer: Nikita Popov <nikic@php.net> Tue, 1 Mar 2016 23:31:58 +0100
Parents: 50b4cafd286eb9d96d71df04e8dc46d321d420b5
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0bbea605241932eba24d82378b6ea5fcf8307029
Log:
Fix bug #71694
Exports contants CURLM_ADDED_ALREADY.
Bugs:
https://bugs.php.net/71694
Changed paths:
M NEWS
M ext/curl/interface.c
Diff:
diff --git a/NEWS b/NEWS
index d0575da..5d37244 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ PHP NEWS
. Fixed bug #71596 (Segmentation fault on ZTS with date function
(setlocale)). (Anatol)
+- Curl:
+ . Fixed bug #71694 (Support constant CURLM_ADDED_ALREADY). (mpyw)
+
- ODBC:
. Fixed bug #47803, #69526 (Executing prepared statements is succesfull only
for the first two statements). (einavitamar at gmail dot com, Anatol)
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index d9aab75..98cc5e2 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -831,6 +831,9 @@ PHP_MINIT_FUNCTION(curl)
REGISTER_CURL_CONSTANT(CURLM_INTERNAL_ERROR);
REGISTER_CURL_CONSTANT(CURLM_OK);
REGISTER_CURL_CONSTANT(CURLM_OUT_OF_MEMORY);
+#if LIBCURL_VERSION_NUM >= 0x072001 /* Available since 7.32.1 */
+ REGISTER_CURL_CONSTANT(CURLM_ADDED_ALREADY);
+#endif
/* Curl proxy constants */
REGISTER_CURL_CONSTANT(CURLPROXY_HTTP);