m6w6/ext-http
3 years agotests: skip SecureTransport
Michael Wallner [Mon, 2 Aug 2021 14:43:55 +0000 (16:43 +0200)] 
tests: skip SecureTransport

3 years agotests: skip ~E_DEPRECATED
Michael Wallner [Mon, 2 Aug 2021 14:42:58 +0000 (16:42 +0200)] 
tests: skip ~E_DEPRECATED

3 years agocurl: ssl/falsestart: ignore rc
Michael Wallner [Mon, 2 Aug 2021 14:42:23 +0000 (16:42 +0200)] 
curl: ssl/falsestart: ignore rc

3 years agogitignore: *.dep
Michael Wallner [Mon, 2 Aug 2021 14:16:02 +0000 (16:16 +0200)] 
gitignore: *.dep

3 years agoPHP-8.1 compat
Michael Wallner [Mon, 2 Aug 2021 14:15:09 +0000 (16:15 +0200)] 
PHP-8.1 compat

3 years agoMerge pull request #113 from Whissi/fix-undefined-array-key-PATH
Michael Wallner [Tue, 1 Jun 2021 08:44:01 +0000 (10:44 +0200)] 
Merge pull request #113 from Whissi/fix-undefined-array-key-PATH

tests: use getenv() to access environment variable

3 years agotests: use getenv() to access environment variable 113/head
Thomas Deutschmann [Tue, 18 May 2021 17:55:47 +0000 (19:55 +0200)] 
tests: use getenv() to access environment variable

Fixes

  Warning: Undefined array key "PATH" in pecl-http-4.1.0/work/php8.0/tests/skipif.inc on line 56

3 years agorelease v4.1.0 v4.1.0
Michael Wallner [Mon, 19 Apr 2021 08:20:28 +0000 (10:20 +0200)] 
release v4.1.0

 * Added request options:
  * http\Client\Curl::$abstract_unix_socket
  * http\Client\Curl::$altsvc
  * http\Client\Curl::$altsvc_ctrl
  * http\Client\Curl::$aws_sigv4
  * http\Client\Curl::$doh_url
  * http\Client\Curl::$dns_shuffle_addresses
  * http\Client\Curl::$haproxy_protocol
  * http\Client\Curl::$hsts
  * http\Client\Curl::$hsts_ctrl
  * http\Client\Curl::$http09_allowed
  * http\Client\Curl::$maxage_conn
  * http\Client\Curl::$pinned_publickey
  * http\Client\Curl::$proxy_ssl
  * http\Client\Curl::$socks5_auth
  * http\Client\Curl::$tcp_fastopen
  * http\Client\Curl::$tls13_ciphers
  * http\Client\Curl::$xoauth2_bearer
 * Added request option constants:
  * http\Client\Curl\AUTH_AWS_SIGV4
  * http\Client\Curl\AUTH_BEARER
  * http\Client\Curl\AUTH_NONE
  * http\Client\Curl\HTTP_VERSION_2_PRIOR_KNOWLEDGE
  * http\Client\Curl\HTTP_VERSION_3
  * http\Client\Curl\SSL_VERSION_MAX_*
  * http\Client\Curl\SSL_VERSION_TLSv1_3
 * Added library version constants:
  * http\Client\Curl\Versions\BROTLI
  * http\Client\Curl\Versions\CAINFO
  * http\Client\Curl\Versions\CAPATH
  * http\Client\Curl\Versions\HYPER
  * http\Client\Curl\Versions\ICONV
  * http\Client\Curl\Versions\NGHTTP2
  * http\Client\Curl\Versions\QUIC
  * http\Client\Curl\Versions\ZSTD

3 years agoexplicitly allow null to avoid warning in 8.1
Michael Wallner [Wed, 10 Mar 2021 09:17:01 +0000 (10:17 +0100)] 
explicitly allow null to avoid warning in 8.1

3 years agoconvert_to_explicit_type has been removed upstream
Michael Wallner [Wed, 10 Mar 2021 09:16:30 +0000 (10:16 +0100)] 
convert_to_explicit_type has been removed upstream

3 years agofix package.xml date
Michael Wallner [Tue, 9 Mar 2021 08:52:42 +0000 (09:52 +0100)] 
fix package.xml date

3 years agospl_ce_Countable -> zend_ce_countable
Michael Wallner [Tue, 9 Mar 2021 08:26:43 +0000 (09:26 +0100)] 
spl_ce_Countable -> zend_ce_countable

3 years agofence new altsvc and hsts features
Michael Wallner [Tue, 9 Mar 2021 07:44:20 +0000 (08:44 +0100)] 
fence new altsvc and hsts features

3 years agows
Michael Wallner [Tue, 9 Mar 2021 06:56:45 +0000 (07:56 +0100)] 
ws

3 years agoadd AWS_SIGV4 support
Michael Wallner [Mon, 8 Mar 2021 14:23:39 +0000 (15:23 +0100)] 
add AWS_SIGV4 support

3 years agoadd CURLOPT_HSTS
Michael Wallner [Mon, 8 Mar 2021 13:38:02 +0000 (14:38 +0100)] 
add CURLOPT_HSTS

3 years agoadd CURLOPT_PROXY_ISSUERCERT
Michael Wallner [Mon, 8 Mar 2021 13:15:02 +0000 (14:15 +0100)] 
add CURLOPT_PROXY_ISSUERCERT

3 years agoadd CURLMOPT_MAX_CONCURRENT_STREAMS
Michael Wallner [Mon, 8 Mar 2021 11:19:26 +0000 (12:19 +0100)] 
add CURLMOPT_MAX_CONCURRENT_STREAMS

3 years agoadd CURLINFO_RETRY_AFTER
Michael Wallner [Mon, 8 Mar 2021 11:07:27 +0000 (12:07 +0100)] 
add CURLINFO_RETRY_AFTER

3 years agoadd CURLOPT_MAXAGE_CONN
Michael Wallner [Mon, 8 Mar 2021 10:52:46 +0000 (11:52 +0100)] 
add CURLOPT_MAXAGE_CONN

3 years agono H1 pipelining since libcurl 7.62.0
Michael Wallner [Mon, 8 Mar 2021 09:55:41 +0000 (10:55 +0100)] 
no H1 pipelining since libcurl 7.62.0

3 years agoadd CURLOPT_ALTSVC{,_CTRL} and resp. constants
Michael Wallner [Mon, 8 Mar 2021 09:16:38 +0000 (10:16 +0100)] 
add CURLOPT_ALTSVC{,_CTRL} and resp. constants

3 years agoadd CURLOPT_HTTP09_ALLOWED
Michael Wallner [Mon, 8 Mar 2021 08:32:50 +0000 (09:32 +0100)] 
add CURLOPT_HTTP09_ALLOWED

3 years agoadd CURLOPT_DOH_URL
Michael Wallner [Fri, 5 Mar 2021 16:18:39 +0000 (17:18 +0100)] 
add CURLOPT_DOH_URL

3 years agoadd CURLAUTH_BEARER and CURLOPT_XOAUTH2_BEARER
Michael Wallner [Fri, 5 Mar 2021 15:54:40 +0000 (16:54 +0100)] 
add CURLAUTH_BEARER and CURLOPT_XOAUTH2_BEARER

3 years agoadd CURLOPT_{,PROXY}_TLS13_CIPHERS
Michael Wallner [Fri, 5 Mar 2021 15:42:35 +0000 (16:42 +0100)] 
add CURLOPT_{,PROXY}_TLS13_CIPHERS

3 years agoadd request option proxy_ssl.pinned_publickey
Michael Wallner [Fri, 5 Mar 2021 15:37:56 +0000 (16:37 +0100)] 
add request option proxy_ssl.pinned_publickey

3 years agoadd proxy_ssl request options
Michael Wallner [Fri, 5 Mar 2021 10:47:34 +0000 (11:47 +0100)] 
add proxy_ssl request options

3 years agofix old and add new http\Client\Curl\Versions constants
Michael Wallner [Fri, 5 Mar 2021 09:36:52 +0000 (10:36 +0100)] 
fix old and add new http\Client\Curl\Versions constants

3 years agows
Michael Wallner [Fri, 5 Mar 2021 07:34:05 +0000 (08:34 +0100)] 
ws

3 years agoadd CURLOPT_DNS_SHUFFLE_ADDRESSES
Michael Wallner [Fri, 5 Mar 2021 06:45:47 +0000 (07:45 +0100)] 
add CURLOPT_DNS_SHUFFLE_ADDRESSES

3 years agoadd CURLOPT_HAPROXYPROTOCOL
Michael Wallner [Tue, 2 Mar 2021 09:26:03 +0000 (10:26 +0100)] 
add CURLOPT_HAPROXYPROTOCOL

3 years agoadd CURLOPT_SSLVERSION_MAX constants
Michael Wallner [Mon, 1 Mar 2021 16:52:28 +0000 (17:52 +0100)] 
add CURLOPT_SSLVERSION_MAX constants

3 years agoadd CURLOPT_ABSTRACT_UNIX_SOCKET
Michael Wallner [Mon, 1 Mar 2021 16:40:54 +0000 (17:40 +0100)] 
add CURLOPT_ABSTRACT_UNIX_SOCKET

3 years agoadd CURL_SSLVERSION_TLSv1_3
Michael Wallner [Mon, 1 Mar 2021 16:29:54 +0000 (17:29 +0100)] 
add CURL_SSLVERSION_TLSv1_3

3 years agoadd curl request option tcp_fastopen
Michael Wallner [Mon, 1 Mar 2021 15:38:49 +0000 (16:38 +0100)] 
add curl request option tcp_fastopen

3 years agoadd http version 2_PRIOR_KNOWLEDGE and 3 constants
Michael Wallner [Mon, 1 Mar 2021 15:21:10 +0000 (16:21 +0100)] 
add http version 2_PRIOR_KNOWLEDGE and 3 constants

3 years agoadd curl request option socks5_auth
Michael Wallner [Mon, 1 Mar 2021 15:14:09 +0000 (16:14 +0100)] 
add curl request option socks5_auth

3 years agoadd new curl_info entries
Michael Wallner [Mon, 1 Mar 2021 14:22:52 +0000 (15:22 +0100)] 
add new curl_info entries

3 years agows
Michael Wallner [Mon, 1 Mar 2021 14:19:25 +0000 (15:19 +0100)] 
ws

3 years agorelease v4.0.0 v4.0.0
Michael Wallner [Wed, 13 Jan 2021 15:13:19 +0000 (16:13 +0100)] 
release v4.0.0

* PHP 8 compatibility
- Drop ext-propro support:
PHP 8 removes the object get/set API from the ZendEngine, which renders
that extension dysfunctional. As a consequence, the header property of
http\Message and derived classes cannot be modified in place, and thus
by reference.

Changes from beta1:
* Fixed configure on systems which do not provide icu-config
* Fixed gh-issue #89: Cookie handling cannot be disabled since v3.2.1

3 years agoupdate README
Michael Wallner [Wed, 13 Jan 2021 14:40:13 +0000 (15:40 +0100)] 
update README

3 years agoadd missing test
Michael Wallner [Wed, 13 Jan 2021 14:39:30 +0000 (15:39 +0100)] 
add missing test

3 years agofix submodule ref
Michael Wallner [Wed, 13 Jan 2021 10:11:12 +0000 (11:11 +0100)] 
fix submodule ref

3 years agostrip changelog
Michael Wallner [Wed, 13 Jan 2021 09:46:18 +0000 (10:46 +0100)] 
strip changelog

3 years agofix php_stream_memory_open usage with 8.1+
Michael Wallner [Wed, 13 Jan 2021 09:23:56 +0000 (10:23 +0100)] 
fix php_stream_memory_open usage with 8.1+

3 years agolimit the workaround for #84 to libcurl 7.63-7.64
Michael Wallner [Wed, 13 Jan 2021 08:59:56 +0000 (09:59 +0100)] 
limit the workaround for #84 to libcurl 7.63-7.64

fix #89

3 years agofix usage of hash_init() in 8.1
Michael Wallner [Tue, 12 Jan 2021 19:15:46 +0000 (20:15 +0100)] 
fix usage of hash_init() in 8.1

3 years agoupdate scripts/ci
Michael Wallner [Tue, 12 Jan 2021 19:04:28 +0000 (20:04 +0100)] 
update scripts/ci

3 years agofix build with libicu-dev not providing icu-config
Michael Wallner [Tue, 12 Jan 2021 19:03:54 +0000 (20:03 +0100)] 
fix build with libicu-dev not providing icu-config

3 years agofix package.xml
Michael Wallner [Tue, 12 Jan 2021 18:16:02 +0000 (19:16 +0100)] 
fix package.xml

3 years agogh-actions: ci: fix coverage CFLAGS
Michael Wallner [Tue, 12 Jan 2021 18:12:23 +0000 (19:12 +0100)] 
gh-actions: ci: fix coverage CFLAGS

3 years agogh-actions: ci: install re2c
Michael Wallner [Tue, 12 Jan 2021 18:06:33 +0000 (19:06 +0100)] 
gh-actions: ci: install re2c

3 years agogh-actions: ci: fix script location
Michael Wallner [Tue, 12 Jan 2021 18:02:14 +0000 (19:02 +0100)] 
gh-actions: ci: fix script location

3 years agoupdate pecl-ci
Michael Wallner [Tue, 12 Jan 2021 17:23:53 +0000 (18:23 +0100)] 
update pecl-ci

3 years agogh-actions: ci: quote envvars
Michael Wallner [Tue, 12 Jan 2021 17:04:35 +0000 (18:04 +0100)] 
gh-actions: ci: quote envvars

3 years agogh-actions: ci: fix yml
Michael Wallner [Tue, 12 Jan 2021 16:59:05 +0000 (17:59 +0100)] 
gh-actions: ci: fix yml

3 years agorm gen_travis_yml.php
Michael Wallner [Tue, 12 Jan 2021 16:54:45 +0000 (17:54 +0100)] 
rm gen_travis_yml.php

3 years agogh-actions: ci: we need the pecl-ci submodule
Michael Wallner [Tue, 12 Jan 2021 16:53:19 +0000 (17:53 +0100)] 
gh-actions: ci: we need the pecl-ci submodule

3 years agoupdate changelog
Michael Wallner [Tue, 12 Jan 2021 16:49:29 +0000 (17:49 +0100)] 
update changelog

3 years agogh-actions: workflows/ci
Michael Wallner [Tue, 12 Jan 2021 16:49:25 +0000 (17:49 +0100)] 
gh-actions: workflows/ci

3 years agotravis: org->com [travis skip]
Michael Wallner [Tue, 1 Dec 2020 15:35:29 +0000 (16:35 +0100)] 
travis: org->com [travis skip]

3 years agoUpdate config.w32: drop PHP_HTTP_HAVE_EXT_PROPRO
Jan Ehrhardt [Tue, 1 Dec 2020 15:25:25 +0000 (16:25 +0100)] 
Update config.w32: drop PHP_HTTP_HAVE_EXT_PROPRO

PHP_HTTP_HAVE_EXT_PROPRO is not used anywhere

3 years agorelease 4.0.0
Michael Wallner [Tue, 1 Dec 2020 14:02:44 +0000 (15:02 +0100)] 
release 4.0.0

>*NOTE:*
v4.x will be PHP-8 only, v3.x continues PHP-7 support

* PHP 8 compatibility
- Drop ext-propro support
PHP 8 removes the object get/set API from the ZendEngine, which renders
that extension dysfunctional. As a consequence, the header property of
http\Message and derived classes cannot be modified in place, and thus
by reference.

3 years agotravis
Michael Wallner [Mon, 30 Nov 2020 16:01:45 +0000 (17:01 +0100)] 
travis

4 years agotravis: fix build
Michael Wallner [Mon, 2 Nov 2020 19:36:42 +0000 (20:36 +0100)] 
travis: fix build

4 years agorelease 4.0.0beta1 v4.0.0beta1
Michael Wallner [Wed, 23 Sep 2020 06:26:02 +0000 (08:26 +0200)] 
release 4.0.0beta1

* PHP 8 compatibility
- Drop ext-propro support
PHP 8 removes the object get/set API from the ZendEngine, which renders
that extension dysfunctional. As a consequence, the header property of
http\Message and derived classes cannot be modified in place, and thus
by reference.

4 years agoenable zlib/brotli/curl by default
Michael Wallner [Mon, 21 Sep 2020 12:59:36 +0000 (14:59 +0200)] 
enable zlib/brotli/curl by default

4 years agoremove deleted files
Michael Wallner [Mon, 21 Sep 2020 12:59:13 +0000 (14:59 +0200)] 
remove deleted files

4 years agoPHP 8 compatibility
Michael Wallner [Mon, 21 Sep 2020 12:23:15 +0000 (14:23 +0200)] 
PHP 8 compatibility

4 years agodrop dep on ext-propro (dysfunctional with PHP 8)
Michael Wallner [Mon, 21 Sep 2020 07:42:30 +0000 (09:42 +0200)] 
drop dep on ext-propro (dysfunctional with PHP 8)

4 years agoAdd cryp32.lib to config.w32 dependent libs
Jan Ehrhardt [Wed, 1 Jan 2020 21:28:40 +0000 (22:28 +0100)] 
Add cryp32.lib to config.w32 dependent libs

When linking to a libcurl_a.lib that is compiled with Schannel (--with-winssl) cryp32.lib is needed as dependant lib.
See https://github.com/curl/curl/issues/1147#issuecomment-263408263 for instance.

4 years agomove to PHP-7.4 as current GA
Michael Wallner [Wed, 4 Dec 2019 15:50:31 +0000 (16:50 +0100)] 
move to PHP-7.4 as current GA

4 years agofix #98 #99 #100 #101 #102 #103
Michael Wallner [Wed, 4 Dec 2019 07:33:44 +0000 (08:33 +0100)] 
fix #98 #99 #100 #101 #102 #103

Tests were failing on systems with zend.exception_ignore_arg set.
Thanks to Thomas Deutschmann (@Whissi)

5 years agoConfig.w32 chack for both instances of event.h
Jan Ehrhardt [Thu, 31 Oct 2019 11:47:31 +0000 (12:47 +0100)] 
Config.w32 chack for both instances of event.h

Fixes https://github.com/m6w6/ext-http/issues/97 when the libevent2 headers are not installed in the main include dir, for instance in c:/php-snap-build/dep-aux/vc15/x64/libevent/include

5 years agorelease 3.2.3 RELEASE_3_2_3
Michael Wallner [Tue, 29 Oct 2019 06:42:02 +0000 (07:42 +0100)] 
release 3.2.3

* Fixed Windows build (Jan Ehrhardt)

5 years agoconfig.w32: fix missing icule.lib and iculx.lib
Jan Ehrhardt [Thu, 24 Oct 2019 15:23:36 +0000 (17:23 +0200)] 
config.w32: fix missing icule.lib and iculx.lib

icule.lib and iculx.lib have been removed in ICU 58.1.
Add thesame checks as in https://github.com/php/php-src/blob/PHP-7.4/ext/intl/config.w32#L123

5 years agoMerge pull request #96 from Jan-E/master
Jan Ehrhardt [Thu, 24 Oct 2019 11:41:59 +0000 (13:41 +0200)] 
Merge pull request #96 from Jan-E/master

Windows & PHP 7.4 fixes

5 years agoConfig.w32: add curl dependent libs 96/head
Jan-E [Thu, 24 Oct 2019 11:09:02 +0000 (13:09 +0200)] 
Config.w32: add curl dependent libs

5 years agoPHP 7.4: ulong->unsigned long, uint->uint32_t
Jan-E [Thu, 24 Oct 2019 10:46:50 +0000 (12:46 +0200)] 
PHP 7.4: ulong->unsigned long, uint->uint32_t

5 years agoConfig.w32: link to libssl.lib & libcrypto.lib
Jan-E [Thu, 24 Oct 2019 10:35:11 +0000 (12:35 +0200)] 
Config.w32: link to libssl.lib & libcrypto.lib

5 years agoFix operator for Visual Studio
Jan-E [Thu, 24 Oct 2019 10:28:18 +0000 (12:28 +0200)] 
Fix operator for Visual Studio

5 years agoback to dev
Michael Wallner [Thu, 24 Oct 2019 08:34:21 +0000 (10:34 +0200)] 
back to dev

5 years agorelease v3.2.2 RELEASE_3_2_2
Michael Wallner [Thu, 24 Oct 2019 07:49:08 +0000 (09:49 +0200)] 
release v3.2.2

5 years agofix #91: get rid of most of the yearly failing test
Michael Wallner [Thu, 24 Oct 2019 07:43:27 +0000 (09:43 +0200)] 
fix #91: get rid of most of the yearly failing test

5 years agofix for changed shutdown order in PHP-7.4
Michael Wallner [Mon, 21 Oct 2019 11:38:09 +0000 (13:38 +0200)] 
fix for changed shutdown order in PHP-7.4

5 years agosuppress new PHP-7.4 notice about failed stream_write
Michael Wallner [Wed, 16 Oct 2019 11:11:08 +0000 (13:11 +0200)] 
suppress new PHP-7.4 notice about failed stream_write

5 years agofix #95: typo by @rcanavan
Michael Wallner [Thu, 10 Oct 2019 07:19:00 +0000 (09:19 +0200)] 
fix #95: typo by @rcanavan

5 years agoaddendum to #92
Michael Wallner [Fri, 16 Aug 2019 12:02:13 +0000 (14:02 +0200)] 
addendum to #92

ignore numeric array keys for file entries

5 years agoattempt to fix #92
Michael Wallner [Sat, 10 Aug 2019 09:28:35 +0000 (11:28 +0200)] 
attempt to fix #92

Body::addForm() discards numeric keys

5 years agoattempt to fix #91
Michael Wallner [Fri, 2 Aug 2019 11:15:33 +0000 (13:15 +0200)] 
attempt to fix #91

5 years agoArray and string offset access syntax with curly braces is deprecated
Remi Collet [Tue, 23 Jul 2019 13:24:54 +0000 (15:24 +0200)] 
Array and string offset access syntax with curly braces is deprecated

5 years agofix build
Michael Wallner [Sat, 20 Jul 2019 06:53:31 +0000 (08:53 +0200)] 
fix build

5 years ago[ci skip] administrativa
Michael Wallner [Fri, 12 Jul 2019 12:55:55 +0000 (14:55 +0200)] 
[ci skip] administrativa

5 years ago[ci skip] sync changelog
Michael Wallner [Fri, 12 Jul 2019 12:48:42 +0000 (14:48 +0200)] 
[ci skip] sync changelog

5 years agoadd more cookie tests
Michael Wallner [Fri, 12 Jul 2019 12:27:23 +0000 (14:27 +0200)] 
add more cookie tests

5 years agoRevert "add more cookie tests"
Michael Wallner [Fri, 12 Jul 2019 12:26:11 +0000 (14:26 +0200)] 
Revert "add more cookie tests"

This reverts commit e2b947ae9fa3b56f94855c5c111ccc9fb595d460.

5 years agoadd more cookie tests
Michael Wallner [Fri, 12 Jul 2019 12:25:19 +0000 (14:25 +0200)] 
add more cookie tests

5 years agotravis: test against 7.4, but allow failures until stablilized
Michael Wallner [Mon, 17 Jun 2019 11:40:16 +0000 (13:40 +0200)] 
travis: test against 7.4, but allow failures until stablilized

5 years agoprepare release 3.2.1 RELEASE_3_2_1
Michael Wallner [Fri, 7 Jun 2019 11:46:39 +0000 (13:46 +0200)] 
prepare release 3.2.1

* Fixed gh-issue #88: Unable to run test suite (Remi Collet)
* Fixed gh-issue #86: test failure with curl 7.64
* Fixed gh-issue #85: [-Wformat-extra-args] build warnings
* Fixed gh-issue #84: segfault and build failure since curl 7.62
* Fixed gh-issue #82: Test harness improvements (Chris Wright)
* Fixed gh-issue #64: compress and connecttimeout interfere with low_speed_limit (@rcanavan)
* Fixed http\QueryString::getGlobalInstance()
* Fixed missing 2nd reflection argument info of http\Client::notify()
* Fixed PHP-7.4 compatibility