Skip to content

Missing CURL_HTTP_VERSION_3 constant #11755

Closed

Description

@nicolas-grekas

Description

In order to enable HTTP2, we can do curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);.

Don't we need a corresponding call for v3? CURL_HTTP_VERSION_3 does not exist, is that intended?

Maybe we're supposed to use CURLALTSVC_H3 instead?

PHP Version

PHP 8.3

Activity

  1. adoy commented on Jul 21, 2023

    @adoy
    Member

    I'm out for vacations without a proper access to a computer until july 31th. I'll have a look at that time.

  2. damianwadley commented on Jul 21, 2023

    @damianwadley
    Member

    https://curl.se/libcurl/c/symbols-in-versions.html

    I don't see a "CURL_HTTP_VERSION_3_0".

  3. changed the title [-]Missing CURL_HTTP_VERSION_3_0 constant[/-] [+]Missing CURL_HTTP_VERSION_3 constant[/+] on Jul 21, 2023
  4. nicolas-grekas commented on Jul 21, 2023

    @nicolas-grekas
    ContributorAuthor

    Updated, the name is CURL_HTTP_VERSION_3 indeed.

  5. added a commit that references this issue on Aug 19, 2023
    22a5807
  6. nicolas-grekas commented on Nov 13, 2023

    @nicolas-grekas
    ContributorAuthor
  7. Ayesh commented on Feb 22, 2024

    @Ayesh
    Member

    Ping :)

  8. Ayesh commented on Aug 13, 2024

    @Ayesh
    Member

    Hi @nicolas-grekas - we recently had #15350 merged, so PHP 8.4 will have CURL_HTTP_VERSION_3 and CURL_HTTP_VERSION_3ONLY constants declared (subject to underlying libcurl version). Shall we close this?

  9. nicolas-grekas commented on Aug 13, 2024

    @nicolas-grekas
    ContributorAuthor

    Sure, thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions