Re: PHP 4.0 Bug #7844: object inside a session registeredobjectis not restored correctly
| From: | Michael Haertl | Date: | Fri, 17 Nov 2000 08:50:36 +0000 |
| Subject: | Re: PHP 4.0 Bug #7844: object inside a session registeredobjectis not restored correctly | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-38396@lists.php.net to get a copy of this message | ||
> > > Try the following:
> > >
> > > ...
> > > $a=new myclass;
> > > session_register("a");
> > > ...
> >
> > Nope, doesn't solve my problem at all. Got the same error-msg.
> >
>
> Is session.auto_start in php.ini on?
Listen, this is not a problem of session starting. There is a session ID
created, i'm using transparent session id and it worked all great. I'm
not new to sessions. My main object $a gets stored and restored. But not
my "subobject" $a->x.
No, session.auto_start is off, but as i already said: It worked until
4.0.3pl1 ! It doesn't have to be turned on, as you can read in the PHP
docu:
"PHP will check automatically (if session.auto_start is set to 1) or on
your request (explicitly through session_start() OR IMPLICITLY THROUGH
SESSION_REGISTER()) whether a specific session id has been sent with the
request."
Just play around with my example and you will see what i mean: you can
access methods of object $a but not of $a->x after object $a has been
session restored.
bye
mike