From e1439d087b4b529ab4b463c04c90e573bee2ee7a Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 19 Apr 2021 10:35:11 +0200 Subject: [PATCH] update live stub --- http.stub.php | 74 +++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/http.stub.php b/http.stub.php index 204a3a5..7340733 100644 --- a/http.stub.php +++ b/http.stub.php @@ -1503,7 +1503,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate { /** * Cast requested value to bool. */ - const TYPE_BOOL = 17; + const TYPE_BOOL = 16; /** * Cast requested value to int. */ @@ -1935,13 +1935,13 @@ namespace http\Client\Curl; * Bitmask of available libcurl features. * See http\Client\Curl\Features namespace. */ -const FEATURES = 88065949; +const FEATURES = 4179869; /** * List of library versions of or linked into libcurl, * e.g. "libcurl/7.50.0 OpenSSL/1.0.2h zlib/1.2.8 libidn/1.32 nghttp2/1.12.0". * See http\Client\Curl\Versions namespace. */ -const VERSIONS = 'libcurl/7.75.0 OpenSSL/1.1.1j zlib/1.2.11 zstd/1.4.8 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0'; +const VERSIONS = 'libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3'; /** * Use HTTP/1.0 protocol version. */ @@ -1961,11 +1961,11 @@ const HTTP_VERSION_2TLS = 4; /** * Declare prior knowledge that the server supports plain (non-TLS) HTTP/2. Available if libcurl is v7.49.0 or more recent and was built with http2 support. */ -const HTTP_VERSION_2_PRIOR_KNOWLEDGE = 5; +const HTTP_VERSION_2_PRIOR_KNOWLEDGE = NULL; /** * Force usage of HTTP/3. See also http\Client\Curl::$altsvc. Available if libcurl is v7.66.0 or more recent. */ -const HTTP_VERSION_3 = 30; +const HTTP_VERSION_3 = NULL; /** * Use any HTTP protocol version. */ @@ -1985,7 +1985,7 @@ const SSL_VERSION_TLSv1_2 = 6; /** * Use TLS v1.3 encryption. Available if libcurl is v7.52.0 or more recent. */ -const SSL_VERSION_TLSv1_3 = 7; +const SSL_VERSION_TLSv1_3 = NULL; /** * Use any TLS v1 encryption. */ @@ -2005,23 +2005,23 @@ const SSL_VERSION_ANY = 0; /** * Use max default encryption. To be bitwise ORed to a http\Client\Curl\SSL_VERSION_ constant. Available if libcurl is v7.54.0 or more recent. */ -const SSL_VERSION_MAX_DEFAULT = 65536; +const SSL_VERSION_MAX_DEFAULT = NULL; /** * Use upt to TLS v1.0 encryption. To be bitwise ORed to a http\Client\Curl\SSL_VERSION_ constant. Available if libcurl is v7.54.0 or more recent. */ -const SSL_VERSION_MAX_TLSv1_0 = 262144; +const SSL_VERSION_MAX_TLSv1_0 = NULL; /** * Use up to TLS v1.1 encryption. To be bitwise ORed to a http\Client\Curl\SSL_VERSION_ constant. Available if libcurl is v7.54.0 or more recent. */ -const SSL_VERSION_MAX_TLSv1_1 = 327680; +const SSL_VERSION_MAX_TLSv1_1 = NULL; /** * Use up to TLS v1.2 encryption. To be bitwise ORed to a http\Client\Curl\SSL_VERSION_ constant. Available if libcurl is v7.54.0 or more recent. */ -const SSL_VERSION_MAX_TLSv1_2 = 393216; +const SSL_VERSION_MAX_TLSv1_2 = NULL; /** * Use up to TLS v1.3 encryption. To be bitwise ORed to a http\Client\Curl\SSL_VERSION_ constant. Available if libcurl is v7.54.0 or more recent. */ -const SSL_VERSION_MAX_TLSv1_3 = 458752; +const SSL_VERSION_MAX_TLSv1_3 = NULL; /** * Use TLS SRP authentication. Available if libcurl is v7.21.4 or more recent and was built with gnutls or openssl with TLS-SRP support. */ @@ -2041,7 +2041,7 @@ const IPRESOLVE_ANY = 0; /** * Don't use authentication. */ -const AUTH_NONE = 0; +const AUTH_NONE = NULL; /** * Use Basic authentication. */ @@ -2069,7 +2069,7 @@ const AUTH_SPNEGO = 4; /** * Bearer authentication. Set bearer with http\Client\Curl::$xoauth2_bearer request option. Available if libcurl is v7.61.0 or more recent. */ -const AUTH_BEARER = 64; +const AUTH_BEARER = NULL; /** * Use AWS SIGv4 authentication. Available if libcurl is v7.75.0 or more recent. */ @@ -2085,11 +2085,11 @@ const PROXY_SOCKS4 = 4; /** * Use SOCKSv4a proxy protocol. */ -const PROXY_SOCKS4A = 6; +const PROXY_SOCKS4A = 5; /** * Use SOCKS5h proxy protocol. */ -const PROXY_SOCKS5_HOSTNAME = 7; +const PROXY_SOCKS5_HOSTNAME = 5; /** * Use SOCKS5 proxy protoccol. */ @@ -2121,27 +2121,27 @@ const POSTREDIR_ALL = 7; /** * Do only read from but not write to the Alt-Svc cache file. Available if libcurl is v7.64.1 or more recent. */ -const ALTSVC_READONLYFILE = 4; +const ALTSVC_READONLYFILE = NULL; /** * Accept alternative services offered over HTTP/1.1. Available if libcurl is v7.64.1 or more recent. */ -const ALTSVC_H1 = 8; +const ALTSVC_H1 = NULL; /** * Accept alternative services offered over HTTP/2. Available if libcurl is v7.64.1 or more recent. */ -const ALTSVC_H2 = 16; +const ALTSVC_H2 = NULL; /** * Accept alternative services offered over HTTP/3. Available if libcurl is v7.64.1 or more recent. */ -const ALTSVC_H3 = 32; +const ALTSVC_H3 = NULL; /** * Enable the cache. Available if libcurl is v7.74.0 or more recent. */ -const HSTS_ENABLE = 1; +const HSTS_ENABLE = NULL; /** * Do only read from but not write to the HSTS cache file. Available if libcurl is v7.74.0 or more recent. */ -const HSTS_READONLYFILE = 2; +const HSTS_READONLYFILE = NULL; namespace http\Client; /** * The http\Client\Request class provides an HTTP message implementation tailored to represent a request message to be sent by the client. @@ -2446,11 +2446,11 @@ namespace http\Client\Curl\Versions; /** * Version string of libcurl, e.g. "7.50.0". */ -const CURL = '7.75.0'; +const CURL = '7.64.0'; /** * Version string of the SSL/TLS library, e.g. "OpenSSL/1.0.2h". */ -const SSL = 'OpenSSL/1.1.1j'; +const SSL = 'OpenSSL/1.1.1d'; /** * Version string of the zlib compression library, e.g. "1.2.8". */ @@ -2462,11 +2462,11 @@ const ARES = NULL; /** * Version string of the IDN library, e.g. "1.32". */ -const IDN = '2.3.0'; +const IDN = NULL; /** * Version string of the iconv library. Added in v4.1.0. */ -const ICONV = ''; +const ICONV = NULL; /** * Version string of the brotli library. Added in v4.1.0. Available if libcurl is v7.57.0 or more recent. */ @@ -2474,7 +2474,7 @@ const BROTLI = NULL; /** * Version string of nghttp2. Added in v4.1.0. Available if libcurl is v7.66.0 or more recent. */ -const NGHTTP2 = '1.41.0'; +const NGHTTP2 = NULL; /** * Version string of quiche/nghttp3. Added in v4.1.0. Available if libcurl is v7.66.0 or more recent. */ @@ -2482,7 +2482,7 @@ const QUIC = NULL; /** * Default path to the certificate bundle file. Added in v4.1.0. Available if libcurl is v7.70.0 or more recent. */ -const CAINFO = '/etc/ssl/certs/ca-certificates.crt'; +const CAINFO = NULL; /** * Default path to the certificate bundle directory. Added in v4.1.0. Available if libcurl is v7.70.0 or more recent. */ @@ -2490,7 +2490,7 @@ const CAPATH = NULL; /** * Version string of the zstd library. Added in v4.1.0. Available if libcurl is v7.72.0 or more recent. */ -const ZSTD = '1.4.8'; +const ZSTD = NULL; /** * Version string of the hyper library. Added in v4.1.0. Available if libcurl is v7.75.0 or more recent. */ @@ -2664,39 +2664,39 @@ class Enbrotli extends \http\Encoding\Stream { /** * Default compression level. */ - const LEVEL_DEF = 4; + const LEVEL_DEF = NULL; /** * Least compression level. */ - const LEVEL_MIN = 1; + const LEVEL_MIN = NULL; /** * Greatest compression level. */ - const LEVEL_MAX = 11; + const LEVEL_MAX = NULL; /** * Default window bits. */ - const WBITS_DEF = 352; + const WBITS_DEF = NULL; /** * Minimum window bits. */ - const WBITS_MIN = 160; + const WBITS_MIN = NULL; /** * Maximum window bits. */ - const WBITS_MAX = 384; + const WBITS_MAX = NULL; /** * Default compression mode. */ - const MODE_GENERIC = 0; + const MODE_GENERIC = NULL; /** * Compression mode for UTF-8 formatted text. */ - const MODE_TEXT = 4096; + const MODE_TEXT = NULL; /** * Compression mode used in WOFF 2.0. */ - const MODE_FONT = 8192; + const MODE_FONT = NULL; /** * Encode data with brotli encoding. * -- 2.30.2