[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
Mon Jul 9 12:16:29 UTC 2018
#44532: Extreme memory leak related to wp_is_stream in wp-includes/functions.php in
WordPress 4.9.7
--------------------------+---------------------
Reporter: timbowesohft | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 4.9.8
Component: Media | Version: 4.9.7
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by ddenev):
Replying to [comment:9 sebastien@…]:
> Hello
>
> On this version of WordPress (the dev one):
> https://github.com/WordPress/WordPress
>
> the
> {{{
> wp_is_stream()
> }}}
>
> function is quite different...
>
> {{{#!php
> <?php
> /**
> * Test if a given path is a stream URL
> *
> * @since 3.5.0
> *
> * @param string $path The resource path or URL.
> * @return bool True if the path is a stream URL.
> */
> function wp_is_stream( $path ) {
> $wrappers = stream_get_wrappers();
> $wrappers = array_map( 'preg_quote', $wrappers );
> $wrappers_re = '(' . join( '|', $wrappers ) . ')';
>
> return preg_match( "!^$wrappers_re://!", $path ) === 1;
> }
> }}}
>
> is it normal?
> is this change fix the problem ?
Nope, this does not fix the memory explosion problem. At least for me on
Win7 64-bit. The only fix that works so far is the one suggested by
"bezpeka.com" here - https://wordpress.org/support/topic/wp_is_stream-
crashing-the-server/, although it's rather a temporary hack.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44532#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list