Bug #66172 [Opn]: Garbage collector won't collect circullar dependecy if SPL classes involved
| From: | aleksey at roave dot com | Date: | Tue, 26 Nov 2013 03:22:02 +0000 |
| Subject: | Bug #66172 [Opn]: Garbage collector won't collect circullar dependecy if SPL classes involved | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182936@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66172&edit=1
ID: 66172
User updated by: aleksey at roave dot com
Reported by: aleksey at roave dot com
Summary: Garbage collector won't collect circullar dependecy
if SPL classes involved
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Any
PHP Version: 5.5.6
Block user comment: N
Private report: N
New Comment:
Sorry, linked wrong test run
http://3v4l.org/21Tdf
Previous Comments:
------------------------------------------------------------------------
[2013-11-26 03:07:15] aleksey at roave dot com
Description:
------------
This affects all versions with gc, 5.3 to 5.5
Tried script on http://3v4l.org/KmGDj
I can't tell what happens internally, but it looks like garbage collector will not detect and
collect circular dependencies if there are SPL classes involved (i suspect other built-in classes
are affected too)
Test script:
---------------
https://gist.github.com/Xerkus/7562464/raw/f6d0ff3f1fbc24a3a3ca99ac974571748103ab51/test.php
Expected result:
----------------
Memory stays at about the same level
Actual result:
--------------
Used memory grows constantly
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66172&edit=1