1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-17 05:18:13 +01:00

3596 Commits

Author SHA1 Message Date
Tim Düsterhus
d12ecb13c7
Configure convertDeprecationsToExceptions="true" in phpunit.xml.dist (#2992) 2022-03-13 15:53:15 +00:00
Ruud Kamphuis
74ca2cb463
Pass int to &$still_running of curl_multi_exec (#2991) 2022-03-07 11:54:33 +00:00
Fabien Villepinte
c1fd316f0a
Set allow-plugins for Composer 2.2 (#2969)
This new configuration has been introduced with Composer 2.2: https://github.com/composer/composer/releases/tag/2.2.0-RC1
2021-12-13 16:13:08 +00:00
Graham Campbell
ee0a041b17
Release 7.4.1 (#2965) 7.4.1 2021-12-06 18:43:05 +00:00
Graham Campbell
01611d9e72
Replaced implicit URI to string coercion (#2946) 2021-12-06 19:34:32 +01:00
divinity76
e6765c0559
Only close curl handle if it's done (#2950) 2021-12-06 18:24:04 +00:00
Alexander M. Turek
1d347d76a8
Allow deprecation-contracts 3 (#2961)
* Allow deprecation-contracts 3

* Update composer.json

Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
2021-12-06 18:22:58 +00:00
Sam Reed
764e13d11d
Add vendor-bin as export-ignore in .gitattributes (#2956) 2021-12-06 18:22:49 +00:00
Graham Campbell
868b3571a0
Release 7.4.0 (#2947) 7.4.0 2021-10-18 10:52:00 +01:00
Graham Campbell
70d32b9f38
Stricter treatment of types in SetCookie (#2945)
* Stricter treatment of types in `SetCookie`

* Upgraded static analyzers
2021-10-18 10:23:28 +02:00
Tim Düsterhus
399c0eaf9b
Throw InvalidArgumentException when an incorrect headers array is provided (#2942)
* Throw `InvalidArgumentException` when an incorrect `headers` array is provided

As discussed in PR #2916 after it was merged an `InvalidArgumentException` is
more fitting, as passing an invalid `headers` array is a clear programming
error that needs to be fixed and not caught.

This is consistent with the validation of the other options, e.g. when using
`multipart` and `form_params` at the same time.

see #2916
see a2b8dd1ad7e733d50e9c7b80cb375e0883a7088d

* Remove obsolete import in Client.php / ClientTest.php
2021-10-17 14:39:51 +01:00
erikn69
eeac96d112
Support psr/log:^2.0,^3.0 (#2943) 2021-10-14 00:47:22 +01:00
Graham Campbell
7ec2e2a665
Bump minimum versions for PHP 8.1 support (#2939) 2021-10-07 22:43:45 +02:00
Tim Düsterhus
5da9dac6ae
Fix progress parameter type compatibility between cURL and StreamHandler (#2936)
Unknown values of the progress called are filled with `0` by cURL and in fact
the `CURLOPT_PROGRESSFUNCTION` parameters are explicitly typed `int` in
CurlFactory.

StreamHandler always provided `null` as the upload progress, because the
progress is not known there. Adjust this to `0` for consistent behavior.
2021-10-07 14:10:27 +01:00
Fabien Villepinte
6b499cc5e2
Upgrade PHP-CS-Fixer to 3.x (#2937) 2021-10-05 16:50:51 +01:00
Graham Campbell
e38c668f3b
Remove unneeded annotation (#2930) 2021-09-05 21:58:29 +02:00
Graham Campbell
815dae7f2f
Support PHP 8.1 (#2929) 2021-09-05 21:11:34 +02:00
Graham Campbell
fa6800da0e
Updated docs (#2928)
* Updated docs

* Fixed typo
2021-09-05 20:19:31 +02:00
Mehrdad Esmaeilpour
9833955af5
Update quick start docs (#2921) 2021-09-05 15:35:41 +01:00
Fabien Salathe
2d77dc5241
Fix phpdoc handle_factory array (#2919) 2021-09-05 15:35:17 +01:00
Tobias Nyholm
4b9cf8a049
Update Funding (#2891) 2021-09-05 15:34:59 +01:00
Tobias Nyholm
a3a2077954
Added more checks (#2917) 2021-07-18 00:05:34 +01:00
Tobias Nyholm
1482295aa6
Be more strict with types (#2914)
* Be more strict with types

Make sure getMaxAge() always returns null or int. Also trigger deprecations if wrong types are passed to SetCookie

* fix

* Update baseline

* Require version 2.2
2021-07-18 00:34:19 +02:00
Tobias Nyholm
a2b8dd1ad7
Throw exception if you are using all wrong headers (#2916) 2021-07-18 00:23:23 +02:00
Tobias Nyholm
3f7640eb36
Make sure we always call restore_error_handler() (#2915) 2021-07-17 23:00:20 +01:00
Tim Düsterhus
1d46cec19f
Improve the comment regarding CURLOPT_ENCODING handling (#2904)
While researching how the `decode_content` option is meant to be used and
looking into the Guzzle source code I stumbled over this part of the code,
because it was non-obvious to me that providing an empty string to
`CURLOPT_ENCODING` does not *disable* the decoding, but instead enables *all*
decoders.
2021-07-17 17:56:41 +02:00
Javier Spagnoletti
702cca4cbc
Small simplifications in Utils (#2899) 2021-07-17 17:55:34 +02:00
Timo Schinkel
251bbaa173
[Docs] Add clarification on redirects and PSR-18 (#2893)
* Add clarification on redirects and PSR-18

Using ``GuzzleHttp\Client::sendRequest()`` ignores the `allow_redirects` configuration option. This is discussed in [#2584][0].

This is not reflected in the documentation.

[0]: https://github.com/guzzle/guzzle/issues/2584

* Update docs/request-options.rst

Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
2021-07-17 17:53:53 +02:00
github-actions[bot]
de6f1e58e7
Updating branch alias to 7.4 (#2883)
Co-authored-by: GitHub <noreply@github.com>
2021-03-23 15:07:59 +01:00
Tobias Nyholm
7008573787
Updated date on changelog (#2882) 7.3.0 2021-03-23 12:33:13 +01:00
Tobias Nyholm
b106de8758
Adding CI job to update branch alias when needed (#2880) 2021-03-23 12:29:00 +01:00
Márk Sági-Kazár
98eeb955cb
Merge pull request #2881 from TimWolla/patch-2
Fix markdown typo in CHANGELOG.md
2021-03-21 19:42:29 +01:00
Tim Düsterhus
2c56fff27f
Fix markdown typo in CHANGELOG.md 2021-03-21 19:13:14 +01:00
Tobias Nyholm
955c2e4728
Prepare release 7.3.0 (#2877)
* Prepare release 7.3.0

* Updated changelog

* Update CHANGELOG.md
2021-03-21 18:48:41 +01:00
Tim Düsterhus
a78847bace
Fix formatting of Exception hierarchy in quickstart.rst (#2869)
Introduced in 25486bffcf6fcdb0aceae5a51c31e8f4b2c13c5f.
2021-03-21 18:45:48 +01:00
Tobias Nyholm
7c064ed78b
Test with beta releases (#2879)
* Test with beta releases

* Trigger CI
2021-03-21 18:44:53 +01:00
Graham Campbell
f5aa695156
Robust handling of responses with invalid headers (#2872)
* Robust handling of responses with invalid headers

Co-Authored-By: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>

* Cleanup

Co-authored-by: Tim Düsterhus <209270+TimWolla@users.noreply.github.com>
2021-03-21 18:40:38 +01:00
Tobias Nyholm
f769147048
Test with guzzle/PSR7 2.0 (#2874)
* Test with guzzle/PSR7 2.0

* typo

* bugfix

* Allow dev packages

* Adding return type hints

* Test with the bleeding edge of guzzlehttp/psr7

* Test with stable/beta and dev.

* Test with dev-master for 1.x too

* Reorder.

* Dont test on beta
2021-03-21 17:25:10 +01:00
Tobias Nyholm
0103c786af
Allow installing guzzlehttp/psr7:2.0 (#2878) 2021-03-21 15:50:17 +01:00
Graham Campbell
f38085e434
Use robust, consistent Psr7\Utils::tryFopen where possible (#2876)
Co-Authored-By: Mponos George <gmponos@gmail.com>

Co-authored-by: Mponos George <gmponos@gmail.com>
2021-03-21 13:52:42 +01:00
Graham Campbell
6179dd0f61
Update CI, use better integration with psalm, phpstan and php-ci-fixer (also fix one deprecated call) (#2825)
* Replaced call to deprecated function

* Re-worked static analysis

* Removed unnecessary tools entries

* Use --no-progress to hide broken progress bars
2021-03-21 13:09:11 +01:00
Graham Campbell
01129f635f
Bumped branch alias (#2868) 2021-03-15 08:56:29 +01:00
Razvan Grigore
9687c73518
add support for DER and P12 certs (#2411) (#2413)
* add support for DER and P12 certs (#2411)

https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html

* add test for P12/DER cert types

* dont fail test because of cleanup error

Co-authored-by: Razvan Grigore <razvan.grigore@aboutyou.com>
2021-03-10 13:46:33 +01:00
Tobias Nyholm
da94ef2e43
Fixed wrong parameter order in explode() (#2866) 2021-03-07 12:07:08 +00:00
Tim Düsterhus
2793fe24bf
Support the cURL (http://) scheme for StreamHandler proxies (#2850)
* Support the cURL (http://) scheme for StreamHandler proxies

* Remove 'proxy' workarounds in StreamHandlerTest

* Update documentation to use `http://` instead of `tcp://` for proxies

* Add StreamHandlerTest::testUsesProxy()

* Add CurlFactoryTest::testUsesProxy()
2021-03-07 10:21:23 +01:00
Márk Sági-Kazár
55d46a8ba3
Update stale.yml 2021-02-09 08:52:03 +01:00
Steff Missot
3a0543e4f5
[Doc] ConnectException extends TransferException (#2819) 2021-01-30 09:43:14 +01:00
Joachim
34bc199aef
Removed outdated version number. (#2820) 2020-11-15 12:44:59 +01:00
homersimpsons
18b5ccb551
Middleware httpErrors: fix option name typo (#2817) 2020-11-10 11:00:48 +01:00
Gerd R
25486bffcf
Correct tree of exceptions (#2813)
The ConnectException extends the TransferException not the RequestException
2020-10-25 23:25:00 +01:00