Bug #66172 [NEW]: Garbage collector won't collect circullar dependecy if SPL classes involved
| From: | aleksey at roave dot com | Date: | Tue, 26 Nov 2013 03:07:16 +0000 |
| Subject: | Bug #66172 [NEW]: Garbage collector won't collect circullar dependecy if SPL classes involved | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-182935@lists.php.net to get a copy of this message | ||
From: aleksey at roave dot com
Operating system: Any
PHP version: 5.5.6
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Garbage collector won't collect circullar dependecy if SPL classes involved
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 bug report at https://bugs.php.net/bug.php?id=66172&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66172&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66172&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66172&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66172&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66172&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66172&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66172&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66172&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66172&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66172&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66172&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66172&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66172&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66172&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66172&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66172&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66172&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66172&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66172&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66172&r=mysqlcfg