Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.
stream_context_set_option()
. #822 Props @jrfnlCookie::parse_from_headers()
method.
Classes which extend the Cookie
class and overload the parse_from_headers()
method should be updated for the new method signature.
Additionally, if code calling the Cookie::parse_from_headers()
method would be wrapped in a try - catch
to catch a potential PHP TypeError
(PHP 7.0+) or Exception
(PHP < 7.0) for when invalid data was passed as the $origin
parameter, this code will need to be updated to now also catch a potential WpOrg\Requests\Exception\InvalidArgumentException
.
As due diligence could not find any classes which would be affected by this BC-break, we have deemed it acceptable to include this fix in the 2.0.11 release.