| Bug #30053 | php leaks memory when using references | ||||
|---|---|---|---|---|---|
| Submitted: | 10 Sep 2004 6:20pm UTC | Modified: | 15 Sep 2004 5:02pm UTC | ||
| From: | hkmaly at bigfoot dot com | Assigned to: | |||
| Status: | Wont fix | Category: | Scripting Engine problem | ||
| Version: | 4.3.8 | OS: | Linux | ||
| Votes: | 35 | Avg. Score: | 4.6 ± 1.2 | Reproduced: | 23 of 25 (92.0%) |
| Same Version: | 8 (34.8%) | Same OS: | 15 (65.2%) | ||
[10 Sep 2004 6:20pm UTC] hkmaly at bigfoot dot com
[15 Sep 2004 10:52am UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php circular references, blaa blaa, search the bug db for couple of hundred other similar bug reports. (Won't fix)
[15 Sep 2004 5:02pm UTC] hkmaly at bigfoot dot com
Couple of hundred ? I don't found ANYTHING with http://bugs.php.net/search.php?search_for=circular+references&boolean=1& limit=10&order_by=&direction=ASC&cmd=display&status=All&php_os=&phpver=& assign=&author_email=&bug_age= and only one which look similar with http://bugs.php.net/search.php?search_for=circular+references&boolean=0& limit=10&order_by=&direction=ASC&cmd=display&status=All&bug_type%5B%5D=S cripting+Engine+problem&php_os=&phpver=&assign=&author_email=&bug_age=0 ... maybee your bug-finding system needs some work. That similar one is http://bugs.php.net/bug.php?id=5620 with answer "leaking memory is the intended behaviour using circular references" and "PHP does not do circular references." ... and that leak even has NOT circular references - only multiple references to same array. (On the other hand, original code, before I tried to found minimal case, HAS circular references). Also, there are no "circular references" in PHP manual and "reference counting" is only in user contributed note starting "I had trouble digging this out, ...". I didn't know I must read manual for zend ... Can you tell me more ? Like some other, more simmilar bug number, if it's better in PHP 5, will be in PHP 6 or if I just must learn perl (or lisp) ?
