Skip to content

Commit 29be0cc

Browse files
committed
Add missing CURL_VERSION_* constants
1 parent d21a94e commit 29be0cc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ext/curl/interface.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,22 @@ PHP_MINFO_FUNCTION(curl)
295295
#endif
296296
#if LIBCURL_VERSION_NUM >= 0x073900 /* 7.57.0 */
297297
{"BROTLI", CURL_VERSION_BROTLI},
298+
#endif
299+
#if LIBCURL_VERSION_NUM >= 0x074001 /* 7.64.1 */
300+
{"ALTSVC", CURL_VERSION_ALTSVC},
301+
#endif
302+
#if LIBCURL_VERSION_NUM >= 0x074200 /* 7.66.0 */
303+
{"HTTP3", CURL_VERSION_HTTP3},
304+
#endif
305+
#if LIBCURL_VERSION_NUM >= 0x074800 /* 7.72.0 */
306+
{"UNICODE", CURL_VERSION_UNICODE},
307+
{"ZSTD", CURL_VERSION_ZSTD},
308+
#endif
309+
#if LIBCURL_VERSION_NUM >= 0x074a00 /* 7.74.0 */
310+
{"HSTS", CURL_VERSION_HSTS},
311+
#endif
312+
#if LIBCURL_VERSION_NUM >= 0x074c00 /* 7.76.0 */
313+
{"GSASL", CURL_VERSION_GSASL},
298314
#endif
299315
{NULL, 0}
300316
};
@@ -1175,6 +1191,7 @@ PHP_MINIT_FUNCTION(curl)
11751191

11761192
#if LIBCURL_VERSION_NUM >= 0x074200 /* Available since 7.66.0 */
11771193
REGISTER_CURL_CONSTANT(CURLOPT_SASL_AUTHZID);
1194+
REGISTER_CURL_CONSTANT(CURL_VERSION_HTTP3);
11781195
#endif
11791196

11801197
#if LIBCURL_VERSION_NUM >= 0x074500 /* Available since 7.69.0 */
@@ -1191,6 +1208,11 @@ PHP_MINIT_FUNCTION(curl)
11911208
REGISTER_CURL_CONSTANT(CURLOPT_SSLKEY_BLOB);
11921209
#endif
11931210

1211+
#if LIBCURL_VERSION_NUM >= 0x074800 /* Available since 7.72.0 */
1212+
REGISTER_CURL_CONSTANT(CURL_VERSION_UNICODE);
1213+
REGISTER_CURL_CONSTANT(CURL_VERSION_ZSTD);
1214+
#endif
1215+
11941216
#if LIBCURL_VERSION_NUM >= 0x074900 /* Available since 7.73.0 */
11951217
REGISTER_CURL_CONSTANT(CURLOPT_SSL_EC_CURVES);
11961218
#endif
@@ -1200,6 +1222,7 @@ PHP_MINIT_FUNCTION(curl)
12001222
REGISTER_CURL_CONSTANT(CURLHSTS_READONLYFILE);
12011223
REGISTER_CURL_CONSTANT(CURLOPT_HSTS);
12021224
REGISTER_CURL_CONSTANT(CURLOPT_HSTS_CTRL);
1225+
REGISTER_CURL_CONSTANT(CURL_VERSION_HSTS);
12031226
#endif
12041227

12051228
#if LIBCURL_VERSION_NUM >= 0x074b00 /* Available since 7.75.0 */
@@ -1211,6 +1234,7 @@ PHP_MINIT_FUNCTION(curl)
12111234
REGISTER_CURL_CONSTANT(CURLOPT_DOH_SSL_VERIFYHOST);
12121235
REGISTER_CURL_CONSTANT(CURLOPT_DOH_SSL_VERIFYPEER);
12131236
REGISTER_CURL_CONSTANT(CURLOPT_DOH_SSL_VERIFYSTATUS);
1237+
REGISTER_CURL_CONSTANT(CURL_VERSION_GSASL);
12141238
#endif
12151239

12161240
#if LIBCURL_VERSION_NUM >= 0x074d00 /* Available since 7.77.0 */

0 commit comments

Comments
 (0)