|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-13 10:41 UTC] tony2001@php.net
[2005-10-21 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
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.