From b836d9cdc161c10d7c4b4eeb50ab123725967893 Mon Sep 17 00:00:00 2001 From: Florian Smeets Date: Sun, 26 Jan 2020 05:18:57 +0100 Subject: [PATCH] Add CURLOPT CURLOPT_HTTP09_ALLOWED available since 7.64.0 --- ext/curl/interface.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index c45763a967..f6707310f4 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1452,6 +1452,10 @@ PHP_MINIT_FUNCTION(curl) REGISTER_CURL_CONSTANT(CURLOPT_TLS13_CIPHERS); #endif +#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */ + REGISTER_CURL_CONSTANT(CURLOPT_HTTP09_ALLOWED); +#endif + #if LIBCURL_VERSION_NUM >= 0x074001 /* Available since 7.64.1 */ REGISTER_CURL_CONSTANT(CURL_VERSION_ALTSVC); #endif @@ -2365,6 +2369,9 @@ static int _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue) /* {{{ #endif #if LIBCURL_VERSION_NUM >= 0x073d00 /* Available since 7.61.0 */ case CURLOPT_DISALLOW_USERNAME_IN_URL: +#endif +#if LIBCURL_VERSION_NUM >= 0x074000 /* Available since 7.64.0 */ + case CURLOPT_HTTP09_ALLOWED: #endif lval = zval_get_long(zvalue); #if LIBCURL_VERSION_NUM >= 0x071304 -- 2.40.0