php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72189 Missing CURL_VERSION_HTTP2 from constants list
Submitted: 2016-05-10 20:00 UTC Modified: 2019-04-29 14:58 UTC
Votes:5
Avg. Score:3.4 ± 0.8
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: miken32 at gmail dot com Assigned:
Status: Open Package: cURL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-05-10 20:00 UTC] miken32 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/curl.constants
---

Constant CURL_VERSION_HTTP2 is not listed.

Also consider including a list of the relevant constants on http://www.php.net/curl_version


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-10 20:05 UTC] miken32 at gmail dot com
cURL header file indicates the following feature testing constants, of which only 4 are listed at http://www.php.net/curl.constants

#define CURL_VERSION_IPV6         (1<<0)  /* IPv6-enabled */
#define CURL_VERSION_KERBEROS4    (1<<1)  /* Kerberos V4 auth is supported
                                             (deprecated) */
#define CURL_VERSION_SSL          (1<<2)  /* SSL options are present */
#define CURL_VERSION_LIBZ         (1<<3)  /* libz features are present */
#define CURL_VERSION_NTLM         (1<<4)  /* NTLM auth is supported */
#define CURL_VERSION_GSSNEGOTIATE (1<<5)  /* Negotiate auth is supported
                                             (deprecated) */
#define CURL_VERSION_DEBUG        (1<<6)  /* Built with debug capabilities */
#define CURL_VERSION_ASYNCHDNS    (1<<7)  /* Asynchronous DNS resolves */
#define CURL_VERSION_SPNEGO       (1<<8)  /* SPNEGO auth is supported */
#define CURL_VERSION_LARGEFILE    (1<<9)  /* Supports files larger than 2GB */
#define CURL_VERSION_IDN          (1<<10) /* Internationized Domain Names are
                                             supported */
#define CURL_VERSION_SSPI         (1<<11) /* Built against Windows SSPI */
#define CURL_VERSION_CONV         (1<<12) /* Character conversions supported */
#define CURL_VERSION_CURLDEBUG    (1<<13) /* Debug memory tracking supported */
#define CURL_VERSION_TLSAUTH_SRP  (1<<14) /* TLS-SRP auth is supported */
#define CURL_VERSION_NTLM_WB      (1<<15) /* NTLM delegation to winbind helper
                                             is suported */
#define CURL_VERSION_HTTP2        (1<<16) /* HTTP2 support built-in */
#define CURL_VERSION_GSSAPI       (1<<17) /* Built against a GSS-API library */
#define CURL_VERSION_KERBEROS5    (1<<18) /* Kerberos V5 auth is supported */
#define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
#define CURL_VERSION_PSL          (1<<20) /* Mozilla's Public Suffix List, used
                                             for cookie domain verification */
 [2017-01-28 17:56 UTC] cmb@php.net
-Package: Documentation problem +Package: cURL related
 [2019-04-28 15:45 UTC]
The following pull request has been associated:

Patch Name: Fixed bug #72189 Add missing `CURL_VERSION_*` constants
On GitHub:  https://github.com/php/php-src/pull/4085
Patch:      https://github.com/php/php-src/pull/4085.patch
 [2019-04-28 23:29 UTC] carusogabriel@php.net
-Type: Documentation Problem +Type: Feature/Change Request
 [2019-04-28 23:29 UTC] carusogabriel@php.net
Changed to a FR as we don't have these constants in the source code.
 [2019-04-29 14:58 UTC] nikic@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2019-04-29 14:58 UTC] nikic@php.net
Changing back to docs problem, as these constants were added in PHP 7.3, just need to be documented.
 [2019-04-29 17:54 UTC] phansys at gmail dot com
Constant added at https://github.com/php/php-src/commit/1badfd8171119ef70a5d088068b9de88ba668f73.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 04:01:27 2019 UTC