Edit report at http://bugs.php.net/bug.php?id=51187&edit=1
ID: 51187 Comment by: [email protected] Reported by: bostjan at a2o dot si Summary: Segmentation fault with Zend_Form/Zend_View Status: Feedback Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: Irrelevant New Comment: 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). Previous Comments: ------------------------------------------------------------------------ [2010-03-03 04:54:53] [email protected] You can find instructions on generating a backtrace at http://bugs.php.net/bugs- generating-backtrace.php. ------------------------------------------------------------------------ [2010-03-03 04:54:52] [email protected] -Status: Open +Status: Feedback ------------------------------------------------------------------------ [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] [email protected] I assume this is an endless recursion, can you please provide a stacktrack? ------------------------------------------------------------------------ [2010-03-03 00:37:51] [email protected] -Status: Open +Status: Feedback ------------------------------------------------------------------------ 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
