Skip to content

Commit 4098184

Browse files
committed
MDL-80640 lib: Update Guzzle library
- GuzzleHttp/Guzzle 7.8.1 - GuzzleHttp/Promises 2.0.2 - GuzzleHttp/PSR7 2.6.2 - Guzzle cache middleware 5.1.0 This brings PHP 8.3 support for Guzzle. Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 462d5f0 commit 4098184

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1189
-1122
lines changed

admin/tool/mfa/factor/sms/classes/local/smsgateway/aws_sns.php

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class aws_sns implements gateway_interface {
3636
public function __construct() {
3737
global $CFG;
3838
require_once($CFG->libdir . '/aws-sdk/src/functions.php');
39-
require_once($CFG->libdir . '/guzzlehttp/guzzle/src/functions_include.php');
40-
require_once($CFG->libdir . '/guzzlehttp/promises/src/functions_include.php');
4139
}
4240

4341
/**

lib/guzzlehttp/guzzle/CHANGELOG.md

+117-3
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,106 @@
22

33
Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
44

5+
6+
## 7.8.1 - 2023-12-03
7+
8+
### Changed
9+
10+
- Updated links in docs to their canonical versions
11+
- Replaced `call_user_func*` with native calls
12+
13+
14+
## 7.8.0 - 2023-08-27
15+
16+
### Added
17+
18+
- Support for PHP 8.3
19+
- Added automatic closing of handles on `CurlFactory` object destruction
20+
21+
22+
## 7.7.1 - 2023-08-27
23+
24+
### Changed
25+
26+
- Remove the need for `AllowDynamicProperties` in `CurlMultiHandler`
27+
28+
29+
## 7.7.0 - 2023-05-21
30+
31+
### Added
32+
33+
- Support `guzzlehttp/promises` v2
34+
35+
36+
## 7.6.1 - 2023-05-15
37+
38+
### Fixed
39+
40+
- Fix `SetCookie::fromString` MaxAge deprecation warning and skip invalid MaxAge values
41+
42+
43+
## 7.6.0 - 2023-05-14
44+
45+
### Added
46+
47+
- Support for setting the minimum TLS version in a unified way
48+
- Apply on request the version set in options parameters
49+
50+
51+
## 7.5.2 - 2023-05-14
52+
53+
### Fixed
54+
55+
- Fixed set cookie constructor validation
56+
- Fixed handling of files with `'0'` body
57+
58+
### Changed
59+
60+
- Corrected docs and default connect timeout value to 300 seconds
61+
62+
63+
## 7.5.1 - 2023-04-17
64+
65+
### Fixed
66+
67+
- Fixed `NO_PROXY` settings so that setting the `proxy` option to `no` overrides the env variable
68+
69+
### Changed
70+
71+
- Adjusted `guzzlehttp/psr7` version constraint to `^1.9.1 || ^2.4.5`
72+
73+
574
## 7.5.0 - 2022-08-28
675

776
### Added
877

978
- Support PHP 8.2
1079
- Add request to delay closure params
1180

81+
1282
## 7.4.5 - 2022-06-20
1383

84+
### Fixed
85+
1486
* Fix change in port should be considered a change in origin
1587
* Fix `CURLOPT_HTTPAUTH` option not cleared on change of origin
1688

89+
1790
## 7.4.4 - 2022-06-09
1891

92+
### Fixed
93+
1994
* Fix failure to strip Authorization header on HTTP downgrade
2095
* Fix failure to strip the Cookie header on change in host or HTTP downgrade
2196

97+
2298
## 7.4.3 - 2022-05-25
2399

100+
### Fixed
101+
24102
* Fix cross-domain cookie leakage
25103

104+
26105
## 7.4.2 - 2022-03-20
27106

28107
### Fixed
@@ -31,6 +110,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
31110
- Reject non-HTTP schemes in StreamHandler
32111
- Set a default ssl.peer_name context in StreamHandler to allow `force_ip_resolve`
33112

113+
34114
## 7.4.1 - 2021-12-06
35115

36116
### Changed
@@ -42,6 +122,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
42122

43123
- Only close curl handle if it's done [#2950](https://github.com/guzzle/guzzle/pull/2950)
44124

125+
45126
## 7.4.0 - 2021-10-18
46127

47128
### Added
@@ -59,6 +140,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
59140

60141
- Be more strict with types [#2914](https://github.com/guzzle/guzzle/pull/2914), [#2917](https://github.com/guzzle/guzzle/pull/2917), [#2919](https://github.com/guzzle/guzzle/pull/2919), [#2945](https://github.com/guzzle/guzzle/pull/2945)
61142

143+
62144
## 7.3.0 - 2021-03-23
63145

64146
### Added
@@ -71,6 +153,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
71153

72154
- Handle exceptions on invalid header consistently between PHP versions and handlers [#2872](https://github.com/guzzle/guzzle/pull/2872)
73155

156+
74157
## 7.2.0 - 2020-10-10
75158

76159
### Added
@@ -93,6 +176,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
93176

94177
- Using environment variable GUZZLE_CURL_SELECT_TIMEOUT [#2786](https://github.com/guzzle/guzzle/pull/2786)
95178

179+
96180
## 7.1.1 - 2020-09-30
97181

98182
### Fixed
@@ -104,6 +188,7 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
104188
- We dont connect curl `sink` on HEAD requests.
105189
- Removed some PHP 5 workarounds
106190

191+
107192
## 7.1.0 - 2020-09-22
108193

109194
### Added
@@ -126,21 +211,25 @@ Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version
126211
- `Utils::defaultCaBundle()`
127212
- `CurlFactory::LOW_CURL_VERSION_NUMBER`
128213

214+
129215
## 7.0.1 - 2020-06-27
130216

131217
* Fix multiply defined functions fatal error [#2699](https://github.com/guzzle/guzzle/pull/2699)
132218

219+
133220
## 7.0.0 - 2020-06-27
134221

135222
No changes since 7.0.0-rc1.
136223

224+
137225
## 7.0.0-rc1 - 2020-06-15
138226

139227
### Changed
140228

141229
* Use error level for logging errors in Middleware [#2629](https://github.com/guzzle/guzzle/pull/2629)
142230
* Disabled IDN support by default and require ext-intl to use it [#2675](https://github.com/guzzle/guzzle/pull/2675)
143231

232+
144233
## 7.0.0-beta2 - 2020-05-25
145234

146235
### Added
@@ -166,6 +255,7 @@ No changes since 7.0.0-rc1.
166255

167256
* Pool option `pool_size` [#2528](https://github.com/guzzle/guzzle/pull/2528)
168257

258+
169259
## 7.0.0-beta1 - 2019-12-30
170260

171261
The diff might look very big but 95% of Guzzle users will be able to upgrade without modification.
@@ -199,15 +289,18 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
199289
* `uri_template()` and `UriTemplate` [#2440](https://github.com/guzzle/guzzle/pull/2440)
200290
* Request options `save_to` and `exceptions` [#2464](https://github.com/guzzle/guzzle/pull/2464)
201291

292+
202293
## 6.5.2 - 2019-12-23
203294

204295
* idn_to_ascii() fix for old PHP versions [#2489](https://github.com/guzzle/guzzle/pull/2489)
205296

297+
206298
## 6.5.1 - 2019-12-21
207299

208300
* Better defaults for PHP installations with old ICU lib [#2454](https://github.com/guzzle/guzzle/pull/2454)
209301
* IDN support for redirects [#2424](https://github.com/guzzle/guzzle/pull/2424)
210302

303+
211304
## 6.5.0 - 2019-12-07
212305

213306
* Improvement: Added support for reset internal queue in MockHandler. [#2143](https://github.com/guzzle/guzzle/pull/2143)
@@ -217,11 +310,13 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
217310
* Fix: Prevent undefined offset when using array for ssl_key options. [#2348](https://github.com/guzzle/guzzle/pull/2348)
218311
* Deprecated `ClientInterface::VERSION`
219312

313+
220314
## 6.4.1 - 2019-10-23
221315

222316
* No `guzzle.phar` was created in 6.4.0 due expired API token. This release will fix that
223317
* Added `parent::__construct()` to `FileCookieJar` and `SessionCookieJar`
224318

319+
225320
## 6.4.0 - 2019-10-23
226321

227322
* Improvement: Improved error messages when using curl < 7.21.2 [#2108](https://github.com/guzzle/guzzle/pull/2108)
@@ -234,6 +329,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
234329
* Fix: Prevent concurrent writes to file when saving `CookieJar` [#2335](https://github.com/guzzle/guzzle/pull/2335)
235330
* Improvement: Update `MockHandler` so we can test transfer time [#2362](https://github.com/guzzle/guzzle/pull/2362)
236331

332+
237333
## 6.3.3 - 2018-04-22
238334

239335
* Fix: Default headers when decode_content is specified
@@ -275,20 +371,22 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
275371
* Bug fix: Fill `CURLOPT_CAPATH` and `CURLOPT_CAINFO` properly [#1684](https://github.com/guzzle/guzzle/pull/1684)
276372
* Improvement: Use `\GuzzleHttp\Promise\rejection_for` function instead of object init [#1827](https://github.com/guzzle/guzzle/pull/1827)
277373

278-
279374
+ Minor code cleanups, documentation fixes and clarifications.
280375

376+
281377
## 6.2.3 - 2017-02-28
282378

283379
* Fix deprecations with guzzle/psr7 version 1.4
284380

381+
285382
## 6.2.2 - 2016-10-08
286383

287384
* Allow to pass nullable Response to delay callable
288385
* Only add scheme when host is present
289386
* Fix drain case where content-length is the literal string zero
290387
* Obfuscate in-URL credentials in exceptions
291388

389+
292390
## 6.2.1 - 2016-07-18
293391

294392
* Address HTTP_PROXY security vulnerability, CVE-2016-5385:
@@ -299,6 +397,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
299397
a server does not honor `Connection: close`.
300398
* Ignore URI fragment when sending requests.
301399

400+
302401
## 6.2.0 - 2016-03-21
303402

304403
* Feature: added `GuzzleHttp\json_encode` and `GuzzleHttp\json_decode`.
@@ -318,6 +417,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
318417
* Bug fix: provide an empty string to `http_build_query` for HHVM workaround.
319418
https://github.com/guzzle/guzzle/pull/1367
320419

420+
321421
## 6.1.1 - 2015-11-22
322422

323423
* Bug fix: Proxy::wrapSync() now correctly proxies to the appropriate handler
@@ -333,6 +433,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
333433
* Bug fix: fixed regression where MockHandler was not using `sink`.
334434
https://github.com/guzzle/guzzle/pull/1292
335435

436+
336437
## 6.1.0 - 2015-09-08
337438

338439
* Feature: Added the `on_stats` request option to provide access to transfer
@@ -367,6 +468,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
367468
* Bug fix: Adding a Content-Length to PHP stream wrapper requests if not set.
368469
https://github.com/guzzle/guzzle/pull/1189
369470

471+
370472
## 6.0.2 - 2015-07-04
371473

372474
* Fixed a memory leak in the curl handlers in which references to callbacks
@@ -384,6 +486,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
384486
* Functions are now conditionally required using an additional level of
385487
indirection to help with global Composer installations.
386488

489+
387490
## 6.0.1 - 2015-05-27
388491

389492
* Fixed a bug with serializing the `query` request option where the `&`
@@ -392,6 +495,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
392495
use `form_params` or `multipart` instead.
393496
* Various doc fixes.
394497

498+
395499
## 6.0.0 - 2015-05-26
396500

397501
* See the UPGRADING.md document for more information.
@@ -416,6 +520,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
416520
* `$maxHandles` has been removed from CurlMultiHandler.
417521
* `MultipartPostBody` is now part of the `guzzlehttp/psr7` package.
418522

523+
419524
## 5.3.0 - 2015-05-19
420525

421526
* Mock now supports `save_to`
@@ -426,6 +531,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
426531
* Marked `GuzzleHttp\Client::getDefaultUserAgent` as deprecated.
427532
* URL scheme is now always lowercased.
428533

534+
429535
## 6.0.0-beta.1
430536

431537
* Requires PHP >= 5.5
@@ -478,6 +584,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
478584
* `GuzzleHttp\QueryParser` has been replaced with the
479585
`GuzzleHttp\Psr7\parse_query`.
480586

587+
481588
## 5.2.0 - 2015-01-27
482589

483590
* Added `AppliesHeadersInterface` to make applying headers to a request based
@@ -488,6 +595,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
488595
RingBridge.
489596
* Added a guard in the Pool class to not use recursion for request retries.
490597

598+
491599
## 5.1.0 - 2014-12-19
492600

493601
* Pool class no longer uses recursion when a request is intercepted.
@@ -508,6 +616,7 @@ Please see [the upgrade document](UPGRADING.md) that describes all BC breaking c
508616
* Exceptions thrown in the `end` event are now correctly wrapped with Guzzle
509617
specific exceptions if necessary.
510618

619+
511620
## 5.0.3 - 2014-11-03
512621

513622
This change updates query strings so that they are treated as un-encoded values
@@ -522,6 +631,7 @@ string that should not be parsed or encoded (unless a call to getQuery() is
522631
subsequently made, forcing the query-string to be converted into a Query
523632
object).
524633

634+
525635
## 5.0.2 - 2014-10-30
526636

527637
* Added a trailing `\r\n` to multipart/form-data payloads. See
@@ -541,7 +651,9 @@ object).
541651
* Note: This has been changed in 5.0.3 to now encode query string values by
542652
default unless the `rawString` argument is provided when setting the query
543653
string on a URL: Now allowing many more characters to be present in the
544-
query string without being percent encoded. See https://tools.ietf.org/html/rfc3986#appendix-A
654+
query string without being percent encoded. See
655+
https://datatracker.ietf.org/doc/html/rfc3986#appendix-A
656+
545657

546658
## 5.0.1 - 2014-10-16
547659

@@ -554,6 +666,7 @@ Bugfix release.
554666
* Fixed an issue where transfer statistics were not being populated in the
555667
RingBridge. https://github.com/guzzle/guzzle/issues/866
556668

669+
557670
## 5.0.0 - 2014-10-12
558671

559672
Adding support for non-blocking responses and some minor API cleanup.
@@ -635,6 +748,7 @@ interfaces.
635748
argument. They now accept an associative array of options, including the
636749
"size" key and "metadata" key which can be used to provide custom metadata.
637750

751+
638752
## 4.2.2 - 2014-09-08
639753

640754
* Fixed a memory leak in the CurlAdapter when reusing cURL handles.
@@ -1077,7 +1191,7 @@ interfaces.
10771191

10781192
## 3.4.0 - 2013-04-11
10791193

1080-
* Bug fix: URLs are now resolved correctly based on https://tools.ietf.org/html/rfc3986#section-5.2. #289
1194+
* Bug fix: URLs are now resolved correctly based on https://datatracker.ietf.org/doc/html/rfc3986#section-5.2. #289
10811195
* Bug fix: Absolute URLs with a path in a service description will now properly override the base URL. #289
10821196
* Bug fix: Parsing a query string with a single PHP array value will now result in an array. #263
10831197
* Bug fix: Better normalization of the User-Agent header to prevent duplicate headers. #264.

0 commit comments

Comments
 (0)