Re: how to detect circular reference caused mem leaks on win32
| From: | Stanislav Malyshev | Date: | Fri, 18 Aug 2000 20:33:02 +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-29526@lists.php.net to get a copy of this message | ||
AL>> example, that╢s the most trivial circular reference I know of, when and
AL>> where (and how much) leaks are generated here:
AL>>
AL>> $x->x=&$x;
AL>> var_dump($x);
This one doesn't generate any memory leaks. You need something more
complicated. If you compile PHP in debug mode, you'll see the leaks by
yourself. But not every circular ref seems to generate it. I cannot think
out of the blue which ones do and which don't, this needs careful analysis
of engine behaviour and it's too late for this :)
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106