php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3265 Inconsistency in sessionized objects
Submitted: 2000-01-21 08:01 UTC Modified: 2000-06-23 21:58 UTC
From: staun at sunsite dot auc dot dk Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (21/01/2000) OS: Linux Redhat 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: staun at sunsite dot auc dot dk
New email:
PHP Version: OS:

 

 [2000-01-21 08:01 UTC] staun at sunsite dot auc dot dk
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). 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-03 14:51 UTC] sas at cvs dot php dot net
Type change
 [2000-06-23 21:58 UTC] sas at cvs dot php dot net
There is no way to serialize a binary relationship between objects. You might want to submit a feature request which details why you want this specific thing to get implemented.

Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 17:05:44 2022 UTC