Bug #51187 [Com]: Segmentation fault with Zend_Form/Zend_View
| From: | weierophinney@php.net | Date: | Wed, 03 Mar 2010 12:32:06 +0000 |
| Subject: | Bug #51187 [Com]: Segmentation fault with Zend_Form/Zend_View | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148211@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51187&edit=1
ID: 51187
Comment by: weierophinney@php.net
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] aharvey@php.net
You can find instructions on generating a backtrace at
http://bugs.php.net/bugs-
generating-backtrace.php.
------------------------------------------------------------------------
[2010-03-03 04:54:52] aharvey@php.net
-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] johannes@php.net
I assume this is an endless recursion, can you please provide a
stacktrack?
------------------------------------------------------------------------
[2010-03-03 00:37:51] johannes@php.net
-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