Skip to content

Commit b836d9c

Browse files
Florian Smeetscmb69
Florian Smeets
authored andcommitted
Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
1 parent a1f2f8f commit b836d9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/curl/interface.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,10 @@ PHP_MINIT_FUNCTION(curl)
14521452
REGISTER_CURL_CONSTANT(CURLOPT_TLS13_CIPHERS);
14531453
#endif
14541454

1455+
#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */
1456+
REGISTER_CURL_CONSTANT(CURLOPT_HTTP09_ALLOWED);
1457+
#endif
1458+
14551459
#if LIBCURL_VERSION_NUM >= 0x074001 /* Available since 7.64.1 */
14561460
REGISTER_CURL_CONSTANT(CURL_VERSION_ALTSVC);
14571461
#endif
@@ -2365,6 +2369,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
23652369
#endif
23662370
#if LIBCURL_VERSION_NUM >= 0x073d00 /* Available since 7.61.0 */
23672371
case CURLOPT_DISALLOW_USERNAME_IN_URL:
2372+
#endif
2373+
#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */
2374+
case CURLOPT_HTTP09_ALLOWED:
23682375
#endif
23692376
lval = zval_get_long(zvalue);
23702377
#if LIBCURL_VERSION_NUM >= 0x071304

0 commit comments

Comments
 (0)