News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
Collecting Garbage Cleaning Up
September 07, 2010 @ 09:56:25

Derick Rethans has continued his series on garbage collection in the PHP internals with this second post of the series with a special look at circular references. You can find the first part here.

In this second part of the three part column on the new garbage collecting mechanism in PHP 5.3, we'll dive into a solution to the problem with circular references. If we look quickly back, we found that by using code like the [first example], an in-request memory leak is created.

He goes on to briefly describe the synchronous algorithm (including a few more helpful graphs to show the flow) and how that has worked its way into the PHP garbage collection methods. He also points out that this collection can be turned off and on via the gc_enable and gc_disable functions. Keep an eye out for the next part of the series where he gets into more detail on how this is all integrated into PHP.

0 comments voice your opinion now!
garabage collection article phparchitect circular references


blog comments powered by Disqus

Similar Posts

Chris Shiflett's Blog: PHP Advent

7PHP.com: Win (TWO) Free Tickets To Hear Rob Allen Introduce Zend Framework 2 (Nomad PHP)

php|architect: August 2006 Issue Released

Matthew Turland's Blog: "Web Scraping with PHP" Now Available in Print!

Adam Gotterer's Blog: Building an Object Collection Manager with the Standard PHP Library (SPL)


Community Events





Don't see your event here?
Let us know!


interview tool voicesoftheelephpant framework language conference laravel version symfony list artisanfiles introduction series community podcast release opinion security composer library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework