PHP 4.0 Bug #7530 Updated: Session does not store Objects

From: Date: Wed, 01 Nov 2000 11:52:03 +0000
Subject: PHP 4.0 Bug #7530 Updated: Session does not store Objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-36623@lists.php.net to get a copy of this message
ID: 7530 User Update by: ori@chikki.net Status: Feedback Bug Type: *Session related Description: Session does not store Objects recompiled using the 4.0.3pl1 and the register_globals in on. There is still a problem with objects in the $SESSION array. If you need to take a look at the application - I may be able to allow access to HTTP on my linux box. Previous Comments: --------------------------------------------------------------------------- [2000-11-01 06:40:56] stas@php.net You may want also to check your register_globals setting... --------------------------------------------------------------------------- [2000-11-01 06:25:05] stas@php.net Works for me in latest version. Please try it. --------------------------------------------------------------------------- [2000-11-01 06:06:03] ori@chikki.net Andi - I checked the latest version you recommended - but I cannot evaluate it since the support for mySQL does not seem to work properly. Ori --------------------------------------------------------------------------- [2000-11-01 05:43:25] ori@chikki.net Sample code as follows: ______________________________________________ // The Class class Count { var $counter; function add() { return $this->count++; } }// End class ______________________________________________ // The session // start up the sessions - use SESSION Array session_start(); session_register("SESSION"); /* initialise the Count objct if necessary */ if (!isset($SESSION["Count"])) { $SESSION["Count"] = new Count; } The problem is when trying to manipulate $SESSION["Count"]->add() - which does the required calculations, but does store the session for later use (the /tmp/sess_***** file). --------------------------------------------------------------------------- [2000-11-01 02:18:46] andi@php.net Also can you please check the latest snapshot from snaps.php.net to see if it works for you now? --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=7530

« previous php.dev (#36623) next »