Edit report at https://bugs.php.net/bug.php?id=60082&edit=1
ID: 60082 Updated by: larue...@php.net Reported by: tklingenberg at lastflood dot net Summary: 100% CPU / when using references with ArrayObject(&$ref). Status: Assigned Type: Bug Package: SPL related Operating System: GNU/Linux PHP Version: 5.3.8 Assigned To: helly Block user comment: N Private report: N New Comment: hmm, your patch seems better, agree. Previous Comments: ------------------------------------------------------------------------ [2011-10-20 05:46:43] tony2...@php.net I'd suggest to try to detect recursion in this case. Unfortunately, I don't see any way to do it except by adding another field to spl_array internal struct. But on the other hand, this struct is not used anywhere except spl_array.c itself, so it should be fine. The patch is attached. ------------------------------------------------------------------------ [2011-10-20 05:44:42] tony2...@php.net The following patch has been added/updated: Patch Name: recursion-detection Revision: 1319089482 URL: https://bugs.php.net/patch-display.php?bug=60082&patch=recursion-detection&revision=1319089482 ------------------------------------------------------------------------ [2011-10-19 02:28:53] larue...@php.net Automatic comment from SVN on behalf of laruence Revision: http://svn.php.net/viewvc/?view=revision&revision=318204 Log: Test for #60082 ------------------------------------------------------------------------ [2011-10-19 02:09:08] larue...@php.net helly, plz look at this. thanks :) ------------------------------------------------------------------------ [2011-10-18 12:51:03] larue...@php.net The following patch has been added/updated: Patch Name: bug60082.phpt Revision: 1318942263 URL: https://bugs.php.net/patch-display.php?bug=60082&patch=bug60082.phpt&revision=1318942263 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60082 -- Edit this bug report at https://bugs.php.net/bug.php?id=60082&edit=1