ID:               34845
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jmund at miqs dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: freebsd 5.4
 PHP Version:      5.0.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Works fine here.


Previous Comments:
------------------------------------------------------------------------

[2005-10-13 01:22:13] jmund at miqs dot com

Description:
------------
Hello.
I just upgraded to 5.0.5 and am having trouble storing objects in
sessions.  I am running apache 2.0.54.  When I try to store any object
into a session I get a segfault like this:
[Wed Oct 12 16:48:24 2005] [notice] child pid 1735 exit signal
Segmentation fault (11)

Below sample should be adding text to the output each time page is
refreshed, but just segfaults in the log.

Please let me know if I can provide any more information and Thank
You!

John




Reproduce code:
---------------
<?
class test{
        var $text;
        function test(){
           $this->text="hey";
        }
        function getText(){
                return $this->text;
        }
        function setText($text){
                $this->text.=$text;
        }
}
session_start();
if(isset($_SESSION['t']))$t=$_SESSION['t'];
else $t=new test();
$t->setText("you");
$_SESSION['t']=$t;
echo $t->getText();
?>

Expected result:
----------------
Should see heyyou with an extra 'you' on each refresh
like this from a server running 4.3.8:
heyyouyouyouyouyouyouyouyouyouyouyouyouyouyouyou

Actual result:
--------------
Actual result is blank page.. with a segfault in the log.


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


-- 
Edit this bug report at http://bugs.php.net/?id=34845&edit=1

Reply via email to