Skip to content

Commit 2fe8666

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0
2 parents 378010a + 41e1891 commit 2fe8666

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
@@ -1192,6 +1192,10 @@ PHP_MINIT_FUNCTION(curl)
11921192
REGISTER_CURL_CONSTANT(CURLOPT_TLS13_CIPHERS);
11931193
#endif
11941194

1195+
#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */
1196+
REGISTER_CURL_CONSTANT(CURLOPT_HTTP09_ALLOWED);
1197+
#endif
1198+
11951199
#if LIBCURL_VERSION_NUM >= 0x074001 /* Available since 7.64.1 */
11961200
REGISTER_CURL_CONSTANT(CURL_VERSION_ALTSVC);
11971201
#endif
@@ -2256,6 +2260,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{
22562260
#endif
22572261
#if LIBCURL_VERSION_NUM >= 0x073d00 /* Available since 7.61.0 */
22582262
case CURLOPT_DISALLOW_USERNAME_IN_URL:
2263+
#endif
2264+
#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */
2265+
case CURLOPT_HTTP09_ALLOWED:
22592266
#endif
22602267
lval = zval_get_long(zvalue);
22612268
if ((option == CURLOPT_PROTOCOLS || option == CURLOPT_REDIR_PROTOCOLS) &&

0 commit comments

Comments
 (0)