Edit report at https://bugs.php.net/bug.php?id=60082&edit=1
ID: 60082 Patch added by: tony2...@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: 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 Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2011-10-18 12:46:20] larue...@php.net The following patch has been added/updated: Patch Name: bug60082.patch Revision: 1318941980 URL: https://bugs.php.net/patch-display.php?bug=60082&patch=bug60082.patch&revision=1318941980 ------------------------------------------------------------------------ [2011-10-18 09:38:44] larue...@php.net $test = new ArrayObject(&$test) will make the intern->array a object; thus, there will be a infinite loop between spl_array_get_properties and spl_array_get_hash_table(call to HASH_OF which will call to spl_array_get_properties). then PHP will segfault due to stack overflow... I have tried to use SEPARATE_ARG_IF_REF to fix this segfault, but there is a test faild (ext/spl/tests/array_004.phpt) thanks ------------------------------------------------------------------------ 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