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:
Circular References
June 26, 2007 @ 09:21:00

In a new post, Derick Rethans talks about circular references (a reference of a memory structure back to itself) and how they relate to PHP.

Circular-references has been a long outstanding issue with PHP. They are caused by the fact that PHP uses a reference counted memory allocation mechanism for its internal variables. This causes problems for longer running scripts (such as an Application Server or the eZ Components test-suite) as the memory is not freed until the end of the request. But not everybody is aware on what exactly the problem is, so here is a small introduction to circular references in PHP.

He starts by explaining what's so bad about circular references - issues not only with referencing the variable but also with freeing up the resources associated with it. He does suggest some solutions to the issue including garbage collection and cyclic tracing.

0 comments voice your opinion now!
circular reference garbagecollection cyclictracing circular reference garbagecollection cyclictracing


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: Memory Leaks With Objects in PHP 5

PHP-GTK Community Site: Gataka: the PHP-GTK IRC bot

Andrew Wulf's Blog: phpdox.net - New Ajax Powered PHP Documentation Site

Stefan Esser's Blog: PHP 4 - Reference Counter Overflow Fix

Matthew Weir O'Phinney's Blog: Overloading arrays in PHP 5.2.0


Community Events





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


threedevsandamaybe series podcast laravel configure community introduction unittest developer code testing wordpress interview release library api language list application install

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