Bug #51187 [Fbk->Opn]: Segmentation fault with Zend_Form/Zend_View

From: Date: Wed, 03 Mar 2010 12:58:38 +0000
Subject: Bug #51187 [Fbk->Opn]: Segmentation fault with Zend_Form/Zend_View
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148213@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
 User updated by:  bostjan at a2o dot si
 Reported by:      bostjan at a2o dot si
 Summary:          Segmentation fault with Zend_Form/Zend_View
-Status:           Feedback
+Status:           Open
 Type:             Bug
 Package:          Reproducible crash
 Operating System: Linux
 PHP Version:      Irrelevant

 New Comment:

:) 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).


Previous Comments:
------------------------------------------------------------------------
[2010-03-03 13:32:06] weierophinney@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] 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?

------------------------------------------------------------------------


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


Thread (8 messages)

« previous php.bugs (#148213) next »