Skip to content

Commit 72f3931

Browse files
author
nono303
committed
Update duplicated const feats[] with CURL_VERSION_CURLDEBUG, CURL_VERSION_THREADSAFE
1 parent da38477 commit 72f3931

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/curl/interface.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ PHP_MINFO_FUNCTION(curl)
290290
{"AsynchDNS", CURL_VERSION_ASYNCHDNS},
291291
{"CharConv", CURL_VERSION_CONV},
292292
{"Debug", CURL_VERSION_DEBUG},
293+
{"MemoryDebug", CURL_VERSION_CURLDEBUG},
293294
{"GSS-Negotiate", CURL_VERSION_GSSNEGOTIATE},
294295
{"IDN", CURL_VERSION_IDN},
295296
{"IPv6", CURL_VERSION_IPV6},
@@ -326,6 +327,9 @@ PHP_MINFO_FUNCTION(curl)
326327
#if LIBCURL_VERSION_NUM >= 0x074c00 /* Available since 7.76.0 */
327328
{"GSASL", CURL_VERSION_GSASL},
328329
#endif
330+
#if LIBCURL_VERSION_NUM >= 0x075600 /* Available since 7.86.0 */
331+
{"ThreadSafe", CURL_VERSION_THREADSAFE},
332+
#endif
329333
{NULL, 0}
330334
};
331335

@@ -1047,6 +1051,7 @@ PHP_FUNCTION(curl_version)
10471051
{"AsynchDNS", CURL_VERSION_ASYNCHDNS},
10481052
{"CharConv", CURL_VERSION_CONV},
10491053
{"Debug", CURL_VERSION_DEBUG},
1054+
{"MemoryDebug", CURL_VERSION_CURLDEBUG},
10501055
{"GSS-Negotiate", CURL_VERSION_GSSNEGOTIATE},
10511056
{"IDN", CURL_VERSION_IDN},
10521057
{"IPv6", CURL_VERSION_IPV6},
@@ -1083,6 +1088,9 @@ PHP_FUNCTION(curl_version)
10831088
#if LIBCURL_VERSION_NUM >= 0x074c00 /* Available since 7.76.0 */
10841089
{"GSASL", CURL_VERSION_GSASL},
10851090
#endif
1091+
#if LIBCURL_VERSION_NUM >= 0x075600 /* Available since 7.86.0 */
1092+
{"ThreadSafe", CURL_VERSION_THREADSAFE},
1093+
#endif
10861094
};
10871095

10881096
for(i = 0; i < sizeof(feats) / sizeof(feats[0]); i++) {

0 commit comments

Comments
 (0)