Bug #71990 [Opn->Fbk]: ArrayObject memory leak

From: Date: Sat, 06 Aug 2016 04:16:53 +0000
Subject: Bug #71990 [Opn->Fbk]: ArrayObject memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202988@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71990&edit=1 ID: 71990 Updated by: kalle@php.net Reported by: littlexiang521 at gmail dot com Summary: ArrayObject memory leak -Status: Open +Status: Feedback Type: Bug Package: SPL related Operating System: CentOS / OSX PHP Version: 5.5.34 Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Considering there is only 4 months left of PHP 5.5's active cycle, and with all the gc improvements made to php7, it is not very likely to get fixed. So please try again and confirm if it works with PHP7. thanks! Previous Comments: ------------------------------------------------------------------------ [2016-04-08 16:15:49] littlexiang521 at gmail dot com It's works fine with php 7.0 latest ------------------------------------------------------------------------ [2016-04-08 15:55:11] littlexiang521 at gmail dot com Description: ------------ if some class extends ArrayObject, in some circular reference conditions gc failed to recycle it. see codes below, if class B is a stdClass everything works fine Test script: --------------- https://0bin.net/paste/CvMSmhUeaKgaE1iU#eQLFPuTHJ56KeveFKaPWoTetXtq+qgeWw+uGDjVbhiU Expected result: ---------------- memory usage keeps low 9175040 9175040 9175040 9175040 9175040 9175040 9175040 9175040 9175040 9175040 9175040 9175040 Actual result: -------------- OOM... 121896960 122945536 124256256 125304832 126615552 127664128 128974848 130285568 131334144 132644864 133693440 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/data/songxiang/haojing/htdocs/pages/test_mem.php on line 40 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71990&edit=1

« previous php.bugs (#202988) next »