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: Open +Status: Assigned Type: Bug Package: SPL related PHP Version: 5.4.9 -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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