[wp-trac] [WordPress Trac] #52622: Fix PHP Warning on PHP7.2 in class-wp-http-curl.php
WordPress Trac
noreply at wordpress.org
Mon Jul 3 14:01:40 UTC 2023
#52622: Fix PHP Warning on PHP7.2 in class-wp-http-curl.php
-------------------------------------+-------------------------------------
Reporter: sjoerdlinders | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: HTTP API | Version: 5.6.2
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit- | Focuses: administration,
tests php80 dev-feedback | coding-standards
-------------------------------------+-------------------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"56128" 56128]:
{{{
#!CommitTicketReference repository="" revision="56128"
HTTP API: Declare a few default parameters in `WP_Http_Curl` and
`WP_Http_Streams`.
This resolves `Undefined array key` PHP warnings when trying to access any
of these values in `WP_Http_Curl::request()` or
`WP_Http_Streams::request()`:
* `$parsed_args['decompress']`
* `$parsed_args['stream']`
* `$parsed_args['filename']`
Follow-up to [10410], [11236], [13274], [17555], [37428], [42766],
[44346].
Props sjoerdlinders, hellofromTonya, jrf, oglekler, Clorith,
SergeyBiryukov.
Fixes #52622.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52622#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list