summaryrefslogtreecommitdiff
path: root/vendor/guzzlehttp
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-06-01 13:33:33 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-06-01 14:14:55 +0100
commit8e8a900847faa50288b83d84c63946b67ff35def (patch)
tree950c99b16e732dc37a8e5c1246879bb7efc8fc97 /vendor/guzzlehttp
parent9aa4b78f19d21d9b703df0986ca3dc23182b6dc7 (diff)
downloadwebtrees-8e8a900847faa50288b83d84c63946b67ff35def.tar.gz
webtrees-8e8a900847faa50288b83d84c63946b67ff35def.tar.bz2
webtrees-8e8a900847faa50288b83d84c63946b67ff35def.zip
Update vendor dependencies
Diffstat (limited to 'vendor/guzzlehttp')
-rw-r--r--vendor/guzzlehttp/guzzle/CHANGELOG.md9
-rw-r--r--vendor/guzzlehttp/guzzle/composer.json2
-rw-r--r--vendor/guzzlehttp/guzzle/src/Client.php9
-rw-r--r--vendor/guzzlehttp/guzzle/src/ClientInterface.php2
-rw-r--r--vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php1
-rw-r--r--vendor/guzzlehttp/guzzle/src/Utils.php30
6 files changed, 40 insertions, 13 deletions
diff --git a/vendor/guzzlehttp/guzzle/CHANGELOG.md b/vendor/guzzlehttp/guzzle/CHANGELOG.md
index a5cb9c1a8f..f5b183a0c1 100644
--- a/vendor/guzzlehttp/guzzle/CHANGELOG.md
+++ b/vendor/guzzlehttp/guzzle/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 6.5.4 - 2020-05-25
+
+* Fix various intl icu issues [#2626](https://github.com/guzzle/guzzle/pull/2626)
+
## 6.5.3 - 2020-04-18
* Use Symfony intl-idn polyfill [#2550](https://github.com/guzzle/guzzle/pull/2550)
@@ -19,7 +23,10 @@
* Improvement: Added support for reset internal queue in MockHandler. [#2143](https://github.com/guzzle/guzzle/pull/2143)
* Improvement: Added support to pass arbitrary options to `curl_multi_init`. [#2287](https://github.com/guzzle/guzzle/pull/2287)
* Fix: Gracefully handle passing `null` to the `header` option. [#2132](https://github.com/guzzle/guzzle/pull/2132)
-* Fix: `RetryMiddleware` did not do exponential delay between retires due unit mismatch. [#2132](https://github.com/guzzle/guzzle/pull/2132)
+* Fix: `RetryMiddleware` did not do exponential delay between retries due unit mismatch. [#2132](https://github.com/guzzle/guzzle/pull/2132)
+ Previously, `RetryMiddleware` would sleep for 1 millisecond, then 2 milliseconds, then 4 milliseconds.
+ **After this change, `RetryMiddleware` will sleep for 1 second, then 2 seconds, then 4 seconds.**
+ `Middleware::retry()` accepts a second callback parameter to override the default timeouts if needed.
* Fix: Prevent undefined offset when using array for ssl_key options. [#2348](https://github.com/guzzle/guzzle/pull/2348)
* Deprecated `ClientInterface::VERSION`
diff --git a/vendor/guzzlehttp/guzzle/composer.json b/vendor/guzzlehttp/guzzle/composer.json
index 02ab73c0f1..b7bff79a84 100644
--- a/vendor/guzzlehttp/guzzle/composer.json
+++ b/vendor/guzzlehttp/guzzle/composer.json
@@ -23,7 +23,7 @@
"require": {
"php": ">=5.5",
"ext-json": "*",
- "symfony/polyfill-intl-idn": "^1.11",
+ "symfony/polyfill-intl-idn": "1.17.0",
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.6.1"
},
diff --git a/vendor/guzzlehttp/guzzle/src/Client.php b/vendor/guzzlehttp/guzzle/src/Client.php
index cd9a63574f..315a022cf4 100644
--- a/vendor/guzzlehttp/guzzle/src/Client.php
+++ b/vendor/guzzlehttp/guzzle/src/Client.php
@@ -2,7 +2,7 @@
namespace GuzzleHttp;
use GuzzleHttp\Cookie\CookieJar;
-use GuzzleHttp\Exception\InvalidArgumentException;
+use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Promise;
use GuzzleHttp\Psr7;
use Psr\Http\Message\RequestInterface;
@@ -47,9 +47,8 @@ class Client implements ClientInterface
* wire. The function is called with a Psr7\Http\Message\RequestInterface
* and array of transfer options, and must return a
* GuzzleHttp\Promise\PromiseInterface that is fulfilled with a
- * Psr7\Http\Message\ResponseInterface on success. "handler" is a
- * constructor only option that cannot be overridden in per/request
- * options. If no handler is provided, a default handler will be created
+ * Psr7\Http\Message\ResponseInterface on success.
+ * If no handler is provided, a default handler will be created
* that enables all of the request options below by attaching all of the
* default middleware to the handler.
* - base_uri: (string|UriInterface) Base URI of the client that is merged
@@ -489,7 +488,7 @@ class Client implements ClientInterface
/**
* Throw Exception with pre-set message.
* @return void
- * @throws InvalidArgumentException Invalid body.
+ * @throws \InvalidArgumentException Invalid body.
*/
private function invalidBody()
{
diff --git a/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/vendor/guzzlehttp/guzzle/src/ClientInterface.php
index 76872dd3a9..54c759b96b 100644
--- a/vendor/guzzlehttp/guzzle/src/ClientInterface.php
+++ b/vendor/guzzlehttp/guzzle/src/ClientInterface.php
@@ -15,7 +15,7 @@ interface ClientInterface
/**
* @deprecated Will be removed in Guzzle 7.0.0
*/
- const VERSION = '6.5.3';
+ const VERSION = '6.5.4';
/**
* Send an HTTP request.
diff --git a/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
index 8eaa34f357..564c95f481 100644
--- a/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
+++ b/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
@@ -1,7 +1,6 @@
<?php
namespace GuzzleHttp\Handler;
-use GuzzleHttp\Exception\InvalidArgumentException;
use GuzzleHttp\Promise as P;
use GuzzleHttp\Promise\Promise;
use GuzzleHttp\Utils;
diff --git a/vendor/guzzlehttp/guzzle/src/Utils.php b/vendor/guzzlehttp/guzzle/src/Utils.php
index c8fc1aec66..dd90c2265e 100644
--- a/vendor/guzzlehttp/guzzle/src/Utils.php
+++ b/vendor/guzzlehttp/guzzle/src/Utils.php
@@ -3,6 +3,7 @@ namespace GuzzleHttp;
use GuzzleHttp\Exception\InvalidArgumentException;
use Psr\Http\Message\UriInterface;
+use Symfony\Polyfill\Intl\Idn\Idn;
final class Utils
{
@@ -30,10 +31,7 @@ final class Utils
public static function idnUriConvert(UriInterface $uri, $options = 0)
{
if ($uri->getHost()) {
- $idnaVariant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : 0;
- $asciiHost = $idnaVariant === 0
- ? idn_to_ascii($uri->getHost(), $options)
- : idn_to_ascii($uri->getHost(), $options, $idnaVariant, $info);
+ $asciiHost = self::idnToAsci($uri->getHost(), $options, $info);
if ($asciiHost === false) {
$errorBitSet = isset($info['errors']) ? $info['errors'] : 0;
@@ -64,4 +62,28 @@ final class Utils
return $uri;
}
+
+ /**
+ * @param string $domain
+ * @param int $options
+ * @param array $info
+ *
+ * @return string|false
+ */
+ private static function idnToAsci($domain, $options, &$info = [])
+ {
+ if (\preg_match('%^[ -~]+$%', $domain) === 1) {
+ return $domain;
+ }
+
+ if (\extension_loaded('intl') && defined('INTL_IDNA_VARIANT_UTS46')) {
+ return \idn_to_ascii($domain, $options, INTL_IDNA_VARIANT_UTS46, $info);
+ }
+
+ /*
+ * The Idn class is marked as @internal. We've locked the version to
+ * symfony/polyfill-intl-idn to avoid issues in the future.
+ */
+ return Idn::idn_to_ascii($domain, $options, Idn::INTL_IDNA_VARIANT_UTS46, $info);
+ }
}