Skip to content

Commit 32b8616

Browse files
committed
ext/curl: Add HTTP/3 constants
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".
1 parent 693ec80 commit 32b8616

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

ext/curl/curl.stub.php

+13
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,11 @@
31023102
* @cvalue CURLINFO_RETRY_AFTER
31033103
*/
31043104
const CURLINFO_RETRY_AFTER = UNKNOWN;
3105+
/**
3106+
* @var int
3107+
* @cvalue CURL_HTTP_VERSION_3
3108+
*/
3109+
const CURL_HTTP_VERSION_3 = UNKNOWN;
31053110
#endif
31063111

31073112
#if LIBCURL_VERSION_NUM >= 0x074300 /* Available since 7.67.0 */
@@ -3547,6 +3552,14 @@
35473552
const CURLOPT_QUICK_EXIT = UNKNOWN;
35483553
#endif
35493554

3555+
#if LIBCURL_VERSION_NUM >= 0x075800 /* Available since 7.88.0 */
3556+
/**
3557+
* @var int
3558+
* @cvalue CURL_HTTP_VERSION_3ONLY
3559+
*/
3560+
const CURL_HTTP_VERSION_3ONLY = UNKNOWN;
3561+
#endif
3562+
35503563
/**
35513564
* @var int
35523565
* @cvalue CURLOPT_SAFE_UPLOAD

ext/curl/curl_arginfo.h

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)