|
Posted by Benjamin on 06/18/07 02:30
On Jun 16, 3:35 am, gosha bine <stereof...@gmail.com> wrote:
> Benjamin wrote:
> > I've heard that the Zend Engine's garage collector is not perfect, so
> > can someone demonstrate how to create a memory leak in PHP?
>
> ZE doesn't use garbage collector, it implements reference counting
> algorithm that is notorious for its inability to handle circular
> references. If you have an object A that holds a reference to B, and B
> directly or indirectly refers back to A, neither A nor B will be freed
> until the script ends.
According to Wikipedia (http://en.wikipedia.org/wiki/
Reference_counting), reference counting is a form of garbage
collecting.
>
> --
> gosha bine
>
> extended php parser ~http://code.google.com/p/pihipi
> blok ~http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|