[wp-trac] [WordPress Trac] #44532: Extreme memory leak related to wp_is_stream in wp-includes/functions.php in WordPress 4.9.7
WordPress Trac
noreply at wordpress.org
Tue Jul 17 07:53:21 UTC 2018
#44532: Extreme memory leak related to wp_is_stream in wp-includes/functions.php in
WordPress 4.9.7
------------------------------+---------------------
Reporter: timbowesohft | Owner: pento
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.9.8
Component: Media | Version: 4.9.7
Severity: major | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Changes (by pento):
* owner: (none) => pento
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43466" 43466]:
{{{
#!CommitTicketReference repository="" revision="43466"
Streams: Return early from `wp_is_stream()` for paths that aren't streams.
Some versions of PHP appear to have a memory leak that is occasionally
triggered by calling `stream_get_wrappers()`. In order to avoid calling
this, we can return early from `wp_is_stream()` when `$path` doesn't
contain `://`.
Props pbiron, JPry, dontstealmyfish.
Fixes #44532.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44532#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list