Bug #63680 [PATCH]: Memleak in splfixedarray with cycle reference

From: Date: Tue, 04 Dec 2012 05:23:20 +0000
Subject: Bug #63680 [PATCH]: Memleak in splfixedarray with cycle reference
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175092@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63680&edit=1 ID: 63680 Patch added by: laruence@php.net Reported by: laruence@php.net Summary: Memleak in splfixedarray with cycle reference Status: Open Type: Bug Package: SPL related PHP Version: 5.4.9 Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#175092) next »