RE: [PHP-DEV] Leaking references
| From: | Stanislav Malyshev | Date: | Wed, 28 Mar 2001 14:34:43 +0000 |
| Subject: | RE: [PHP-DEV] Leaking references | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-50129@lists.php.net to get a copy of this message | ||
WF>> Ahhh.
WF>>
WF>> It may sound like a stupid question, but why not?
Because reference-counting mechanisms of memory management are not fit to
deal with circular references.
WF>> And is it likely to in the future?
I won't be holding my breath for it. That's the basic property of
reference-counting, so it's not easy to make it behave differently.
Anyway, unless you have very-long-running very-memory-greedy scripts,
these leaks shouldn't bother you - Zend memory manager cleans them up on
every request.
WF>> As for the leaks, when on a production system (--disable-debug)
WF>> does PHP catch and free them after each request (provided they
WF>> are emalloc'd) ?
Yes. You don't see the messages, but the memory manager is still there :)
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115