You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Declares the `CURL_HTTP_VERSION_3`, along with the arginfo updates.
This should be supported in Curl 7.66 and later, and 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.
`CURL_VERSION_HTTP3` is declared since PHP 8.2.
This intends to supersede the two following PRs:
- php#12000 because it does not modify the stub file, but only update the
arginfo file. It also proposes to merge to GA branches, and is
currently marked as Requires RM Approval.
- php#12543 Essentially the same as this PR and from the same author, as
this, but its about a year old and requires rebasing anyway.
This adds the `CURL_HTTP_VERSION_3` and `CURL_HTTP_VERSION_3ONLY`
constants on relevant versions (7.66 and 7.88 respectively).
It is possible to use HTTP/3 without having these constants declared,
but having them declared in PHP makes things more approachable and
"official".
This intends to supersede the two following PRs:
- #12000 because it does not modify the stub file, but only update the
arginfo file. It also proposes to merge to GA branches, and is
currently marked as Requires RM Approval.
- #12543 Essentially the same as this PR and from the same author, as
this, but its about a year old and requires rebasing anyway.
This adds the `CURL_HTTP_VERSION_3` and `CURL_HTTP_VERSION_3ONLY`
constants on relevant versions (7.66 and 7.88 respectively).
It is possible to use HTTP/3 without having these constants declared,
but having them declared in PHP makes things more approachable and
"official".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Declares the
CURL_HTTP_VERSION_3(libcurl >= 7.66), along with the arginfo updates.We already have
CURL_VERSION_HTTP3constant declared. However, there are not the same.CURL_HTTP_VERSION_3(int 30) is one of theCURLOPT_HTTP_VERSIONoptions, whileCURL_VERSION_HTTP3is 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 patchedopenssl. Without this patch, it is still possible to make HTTP/3 requests withcurl_setopt($ch, CURLOPT_HTTP_VERSION, 30);. This patch merely declares the constant for the parity.Considering we already declare
CURL_VERSION_HTTP3feature-flag constant (since PHP 8.2), I think the lack ofCURL_HTTP_VERSION_3constant 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.