+44 0330 223 3428
Call Us
+44 0330 223 3428

WPTavern: WordPress 4.9.8 Will Significantly Reduce Memory Leak

WPTavern: WordPress 4.9.8 Will Significantly Reduce Memory Leak

WordPress 4.9.8 Beta two recently shipped and although much of the focus will be on the “Try Gutenberg” call-out, there’s a patch included that addresses a memory leak that was quite a problem for some users.

When WordPress 4.9.7 shipped, the WordPress.org support forums saw an increase in reports of memory exhausted errors due to the wp_is_stream function.

The bug is actually in PHP and is related to the stream-get-wrappers function. WordPress 4.9.7 increased the number of times it calls the wp_is_stream() function generating the error more often.

After thoughtful conversations within the trac ticket, a patch was created that after further testing, was committed to core. According to Gary Pendergast, the patch does the following.

Bailing if the path isn’t a stream. This isn’t perfect: it’s still possible to trigger the PHP bug, but it does significantly reduce the chances of the bug being encountered. For many WordPress sites (those that don’t have plugins that use streams), it reduces the chance to zero.

If you encountered memory exhaustion errors after installing or upgrading to WordPress 4.9.7, try WordPress 4.9.8 Beta 2 to see if it fixes the issue.

Aside from coming up with a solution, Trac ticket #44532 is a bit refreshing to see. In open source, tickets or issues can get bogged down with suggestions, hypothetical scenarios, and bike-shed commentary.

In this instance, the issue was identified and folks from the community along with core contributors worked together in a focused fashion to create a fix in time for the next point release. The ticket is a good example of what it’s like when open source is firing on all cylinders. 


WordPress 4.9.8 Beta two recently shipped and although much of the focus will be on the “Try Gutenberg” call-out, there’s a patch included that addresses a memory leak that was quite a problem for some users. When WordPress 4.9.7 shipped, the WordPress.org support forums saw an increase in reports of memory exhausted errors due to the wp_is_stream function. The bug is actually in PHP and is related to the stream-get-wrappers function. WordPress 4.9.7 increased the number of times it calls the wp_is_stream() function generating the error more often. After thoughtful conversations within the trac ticket, a patch was created that after…

Source: WordPress

Related Post
Dev Blog: WordPress 5.1 RC2

Dev Blog: WordPress 5.1 RC2 The second release candidate for WordPress 5.1 is now available! WordPress 5.1 will be released on Thursday, February 21, but we need your help to get there—if you haven’t tried 5.1 yet, now is the time! There are two ways to test the WordPress 5.1 release candidate: try the WordPress […]

Read more
Post Status: Children say his superpower is love: an interview with Topher DeRosia

Post Status: Children say his superpower is love: an interview with Topher DeRosia DK: How did you first got into programming, the web, and WordPress? TD: Getting into programming is a long slow story. Someone mentioned the other day how they learned HTML through View Source, and I did that as well, but then it […]

Read more
WPTavern: Amazon Introduces Blog Blueprint to Deliver WordPress Posts as Audio on Alexa

WPTavern: Amazon Introduces Blog Blueprint to Deliver WordPress Posts as Audio on Alexa Last week Amazon launched Alexa Skill Blueprints that allow anyone to publish new skills to the Alexa Skills Store without having to have any coding knowledge. The blueprints are templates that provide a starting point where users can create a new skill […]

Read more