Bug #63680 [Asn->Csd]: Memleak in splfixedarray with cycle reference
Edit report at https://bugs.php.net/bug.php?id=63680&edit=1
ID: 63680
Updated by: dmitry@php.net
Reported by: laruence@php.net
Summary: Memleak in splfixedarray with cycle reference
-Status: Assigned
+Status: Closed
Type: Bug
Package: SPL related
PHP Version: 5.4.9
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of dmitry@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)
Previous Comments:
------------------------------------------------------------------------
[2012-12-04 05:23:20] laruence@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] laruence@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
Thread (5 messages)