PHP 4.0 Bug #3265: Inconsistency in sessionized objects

From: Date: Fri, 21 Jan 2000 13:01:27 +0000
Subject: PHP 4.0 Bug #3265: Inconsistency in sessionized objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-14798@lists.php.net to get a copy of this message
From: staun@sunsite.auc.dk Operating system: Linux Redhat 6.0 PHP version: 4.0 Latest CVS (21/01/2000) PHP Bug Type: Other Bug description: Inconsistency in sessionized objects I have an object called $MODULEMASTER. This object contains an array of other objects. The MODULEMASTER is registred via session_register(), and saved to disk. The module master supports 2 functions: getModuleOb($name); setModuleOb($name,&$ob); When I call getModuleOb() I receive an object as promised. I call this function in two different browser windows, but I should still have the same object at hand. But I don't. $ob->some_param=1; effects only one of the windows. I need to "write back" the object $ob with the setModuleOb() function and make the other window poll the object again. It seems that nomatter what I do, I keep getting a copy by value of this object. Nomatter how many & I type in all the right places, I always end up in this "writing back" situation (which sucks).

« previous php.dev (#14798) next »