Edit report at http://bugs.php.net/bug.php?id=51187&edit=1
ID: 51187 Updated by: ka...@php.net Reported by: bostjan at a2o dot si Summary: Segmentation fault with Zend_Form/Zend_View -Status: Open +Status: Closed Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: Irrelevant -Assigned To: +Assigned To: kalle New Comment: Can you check if the crash is either one of those described in #46156 and its comments? If its not then please add a comment with how to reproduce it so we have one report with all possible cases we can find. Previous Comments: ------------------------------------------------------------------------ [2010-03-03 13:58:38] bostjan at a2o dot si :) Code was fixed imediately because segfaults were persistent and thus development stopped. It still is a PHP crashing bug though (and ZF inconvenience bug if there is such a thing). ------------------------------------------------------------------------ [2010-03-03 13:32:06] weierophin...@php.net I understand completely what's happening -- you set the value of the object to the object itself; when rendering, it then attempts to cast the value to a string, which means casting the object to a string... which means rendering the element, which will in turn need to cast the value to a string. It's indeed recursion. I can potentially put in some recursion detection in ZF; I'm not sure if the PHP team wants to investigate the segfault, however. Personally, though, I'd consider fixing the code instead, to ensure you're not overwriting the value passed to the function (which is the real error here). ------------------------------------------------------------------------ [2010-03-03 04:54:53] ahar...@php.net You can find instructions on generating a backtrace at http://bugs.php.net/bugs- generating-backtrace.php. ------------------------------------------------------------------------ [2010-03-03 04:33:33] bostjan at a2o dot si It most certainly is an endless recursion, though it should only lead to memory limit error. How do I acquire a stack track? ------------------------------------------------------------------------ [2010-03-03 00:37:52] johan...@php.net I assume this is an endless recursion, can you please provide a stacktrack? ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=51187 -- Edit this bug report at http://bugs.php.net/bug.php?id=51187&edit=1