From 124c4e254250ebac336392711b32dfd6fa3caef3 Mon Sep 17 00:00:00 2001 From: wn_ Date: Mon, 7 Oct 2024 20:22:01 +0000 Subject: Update Guzzle to 7.9.2 https://github.com/guzzle/guzzle/releases --- vendor/guzzlehttp/guzzle/src/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/guzzlehttp/guzzle/src/Utils.php') diff --git a/vendor/guzzlehttp/guzzle/src/Utils.php b/vendor/guzzlehttp/guzzle/src/Utils.php index 93d6d39cd..df529270e 100644 --- a/vendor/guzzlehttp/guzzle/src/Utils.php +++ b/vendor/guzzlehttp/guzzle/src/Utils.php @@ -71,7 +71,7 @@ final class Utils return \STDOUT; } - return \GuzzleHttp\Psr7\Utils::tryFopen('php://output', 'w'); + return Psr7\Utils::tryFopen('php://output', 'w'); } /** @@ -87,7 +87,7 @@ final class Utils { $handler = null; - if (\defined('CURLOPT_CUSTOMREQUEST')) { + if (\defined('CURLOPT_CUSTOMREQUEST') && \function_exists('curl_version') && version_compare(curl_version()['version'], '7.21.2') >= 0) { if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); } elseif (\function_exists('curl_exec')) { -- cgit v1.2.3-54-g00ecf