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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC