Edit report at https://bugs.php.net/bug.php?id=48781&edit=1

 ID:                 48781
 User updated by:    nate at frickenate dot com
 Reported by:        nate at frickenate dot com
 Summary:            Cyclical garbage collector memory leak
-Status:             Closed
+Status:             Assigned
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Debian 5.0 kernel 2.6.24-23-xen
 PHP Version:        5.3.0
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

Confirmed, this bug has regressed. Since it was originally fixed, there are few 
commits to zend_execute.c where that fix was effectuated.

http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/Zend/zend_execute.c?
r1=293985&r2=309342

This shows all changes to that file since the fix (inclusive). The added line 
at 
273 was the fix for this bug. But then we see the other changes made around 
this 
fix, one of which must have caused the cyclical fix to be no longer useful.


Previous Comments:
------------------------------------------------------------------------
[2011-09-13 11:28:12] nex2hex at ya dot ru

On php 5.38 (win32) this bug still exists

------------------------------------------------------------------------
[2011-04-03 02:24:23] jas at rephunter dot net

I believe this bug has regressed. We only recently upgraded from 5.3.2 to 
5.3.5. 
And now several scripts are broken that have been working for years. By adding 
the 
unset of the variable at the end of the loop as shown in the first snippet 
below, 
the problem is fixed.

So I believe that the symptom has regressed, although not necessarily the cause.

------------------------------------------------------------------------
[2010-04-20 14:55:01] dmi...@php.net

Note that your test and expectation are not completely correct because the 
actual garbage collection occurs at undefined moments of time. As result the 
memory usage on different iteration will be different. To avoid this ambiguity 
add explicit call to gc_collect_cycles() before printing memory usage.

------------------------------------------------------------------------
[2010-04-20 14:50:54] dmi...@php.net

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------
[2010-04-20 14:30:38] dmi...@php.net

Automatic comment from SVN on behalf of dmitry
Revision: http://svn.php.net/viewvc/?view=revision&revision=298213
Log: Fixed bug #48781 (Cyclical garbage collector memory leak)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=48781


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=48781&edit=1

Reply via email to