Re: how to detect circular reference caused mem leaks on win32
| From: | Stanislav Malyshev | Date: | Fri, 18 Aug 2000 20:56:37 +0000 |
| Subject: | Re: how to detect circular reference caused mem leaks on win32 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29535@lists.php.net to get a copy of this message | ||
SM>> Yes, this one does leak. Some 140 bytes. Minimal one I could make is:
SM>>
SM>> $o->x->a=1;
SM>> $o->x->y=&$o->x;
SM>>
SM>> Leaks 129 bytes.
Thinking more on this, I think leak in oly created when no point of the
loop is directly mentioned in the symbol table (like binding two
properties of the variable).
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106