php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63680 Memleak in splfixedarray with cycle reference
Submitted: 2012-12-04 05:22 UTC Modified: 2012-12-05 14:00 UTC
From: laruence@php.net Assigned: dmitry (profile)
Status: Closed Package: SPL related
PHP Version: 5.4.9 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2012-12-04 05:22 UTC] 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)

Patches

bug63680.patch (last revision 2012-12-04 05:23 UTC by laruence@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-04 05:23 UTC] 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 07:18 UTC] dmitry@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2012-12-05 13:59 UTC] dmitry@php.net
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)
 [2012-12-05 13:59 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
 [2012-12-05 14:00 UTC] dmitry@php.net
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.


 [2012-12-19 17:55 UTC] derick@php.net
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)
 [2014-10-07 23:20 UTC] stas@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=881416cda670a7ddb94db11a41d4929425da7d61
Log: Fixed bug #63680 (Memleak in splfixedarray with cycle reference)
 [2014-10-07 23:31 UTC] stas@php.net
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=881416cda670a7ddb94db11a41d4929425da7d61
Log: Fixed bug #63680 (Memleak in splfixedarray with cycle reference)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 04:01:28 2024 UTC