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

 ID:                 63680
 Updated by:         dmi...@php.net
 Reported by:        larue...@php.net
 Summary:            Memleak in splfixedarray with cycle reference
 Status:             Closed
 Type:               Bug
 Package:            SPL related
 PHP Version:        5.4.9
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

The fix for this bug has been committed.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-12-05 13:59:47] dmi...@php.net

Automatic comment on behalf of dmi...@zend.com
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=881416cda670a7ddb94db11a41d4929425da7d61
Log: Fixed bug #63680 (Memleak in splfixedarray with cycle reference)

------------------------------------------------------------------------
[2012-12-04 05:23:20] larue...@php.net

The following patch has been added/updated:

Patch Name: bug63680.patch
Revision:   1354598600
URL:        
https://bugs.php.net/patch-display.php?bug=63680&patch=bug63680.patch&revision=1354598600

------------------------------------------------------------------------
[2012-12-04 05:22:46] larue...@php.net

Description:
------------
dmitry introduced the new get_gc handler, but seems splfixedarray doesn't 
implement it.

                         
also there are some other extensions still using ugly implementation for gc, I 
will review them one by one.

thanks

Test script:
---------------
<?php
function dummy() {
    $a = new SplFixedArray(1);
    $b = new SplFixedArray(1);
    $a[0] = $b;
    $b[0] = $a;
}

dummy();
var_dump(gc_collect_cycles());

Expected result:
----------------
int(2)

Actual result:
--------------
int(0)


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



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

Reply via email to