Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Zeev Suraski
If they end up in a circular reference (in this particular case they do, they usually don't) then you're leaking memory. Zeev At 12:10 AM 6/11/2002, brad lafountain wrote: >I use parent members all the time.. w/zend1 > > - Brad >--- Markus Fischer <[EMAIL PROTECTED]> wrote: > > Hi, > > > >

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread brad lafountain
--- Andre Christ <[EMAIL PROTECTED]> wrote: > Hi Brad, > > "Brad Lafountain" <[EMAIL PROTECTED]> wrote > > I use parent members all the time.. w/zend1 > > well, that's what I wanted to do until I discovered these entrys in my log > file when php is compiled --enable-debug. Do you have these mem

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi Brad, "Brad Lafountain" <[EMAIL PROTECTED]> wrote > I use parent members all the time.. w/zend1 well, that's what I wanted to do until I discovered these entrys in my log file when php is compiled --enable-debug. Do you have these mem leaks as well ? Greets, André -- PHP Development Mai

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread brad lafountain
I use parent members all the time.. w/zend1 - Brad --- Markus Fischer <[EMAIL PROTECTED]> wrote: > Hi, > > that's a limitation of the Zend Engine. It does not support > circular references (at least this is would Zeev told me last > time :) > > - Markus > > On Mon, Jun 10,

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Markus Fischer
Hi, that's a limitation of the Zend Engine. It does not support circular references (at least this is would Zeev told me last time :) - Markus On Mon, Jun 10, 2002 at 10:25:38PM +0200, Andre Christ wrote : > working with php's oop implementation I got some memory leaks. The

[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi, working with php's oop implementation I got some memory leaks. The behaviour can be reproduced with the following script: Bar = new CBar(); $this->Bar->Parent = $this; } } $Super = new CSuper(); ?> php 4.2.1 --enable-debug zend_hash.c(260) : Freeing 0x0821000C (39 bytes), script=/h

[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi, working with php's oop implementation I got some memory leaks. The behaviour can be reproduced with the following script: Bar = new CBar(); $this->Bar->Parent = $this; } } $Super = new CSuper(); ?> php 4.2.1 --enable-debug zend_hash.c(260) : Freeing 0x0821000C (39 bytes), script=/h