[php-src] PR #12543: Curl: Add `CURL_HTTP_VERSION_3` constant

From: Date: Sat, 28 Oct 2023 09:20:38 +0000
Subject: [php-src] PR #12543: Curl: Add `CURL_HTTP_VERSION_3` constant
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24018@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12543 Author: Ayesh Declares the CURL_HTTP_VERSION_3 (libcurl >= 7.66), along with the arginfo updates. We already have CURL_VERSION_HTTP3 constant declared. However, there are not the same. CURL_HTTP_VERSION_3 (int 30) is one of the CURLOPT_HTTP_VERSION options, while CURL_VERSION_HTTP3 is the feature flag bitmask. None of the default repos include libcurl with HTTP/3 support enabled, but I could manually get it to work by compiling libcurl with nghttp3, ngtcp2, and patched openssl. Without this patch, it is still possible to make HTTP/3 requests with curl_setopt($ch, CURLOPT_HTTP_VERSION, 30);. This patch merely declares the constant for the parity. Considering we already declare CURL_VERSION_HTTP3 feature-flag constant (since PHP 8.2), I think the lack of CURL_HTTP_VERSION_3 constant is a bit odd. Both constants were declared in the same upstream version (7.66). Also taking it into consideration the rapid HTTP/3 adoption, I would like to request to consider bringing this change to PHP-8.3 branch as well, although we are only a single release candidate behind the first GA.

« previous php.git-pulls (#24018) next »