[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 15:19:28 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 fixed-major  |     Focuses:
------------------------------------------+---------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43484" 43484]:
 {{{
 #!CommitTicketReference repository="" revision="43484"
 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.
 Merges [43466] to the 4.9 branch.
 Fixes #44532.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44532#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list