Re: [PHP4BETA] Session object serialisation
| From: | Stewart Morgan | Date: | Thu, 29 Jul 1999 12:12:21 +0000 |
| Subject: | Re: [PHP4BETA] Session object serialisation | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2946@lists.php.net to get a copy of this message | ||
On Thu, 29 Jul 1999, Boris Erdmann wrote:
> Stewart Morgan wrote:
> >
> > Hello all,
> > Forgive me if this topic has already been broached, I'm new to this
> > list and couldn't find a php4 archive -- does one exist?
> >
> > Whilst reading though session.c, the todo list at the top of the file
> > mentions "add complete support for objects (partially implemented)", what I
> > need to know is how partially is partially? I'm interested in storing a object
> > with an array of objects if that's possible.
> >
> For now you can serialize objects, but php crashes when you try to
> deserialize them. Anyway: the classname is not stored in the serialized
> representation, thus you wont get your object<->method dependencies back.
>
> Use PHPLIB for now.
>
>
> Boris
Ah I see, that would explain it. Does anybody (presumably the
developers) have any ideas about how to get around this and get stored
objects back with their dependencies?? Maybe a function-call in the client
code once the class is known about to fill in the bits which are missing
(eg methods)?
Thanks to all so far, keep up the good work :)
Stewart Morgan
-------------- -
Systems Administrator
Vision Interactive Ltd
18 Whiteladies Road, Clifton, Bristol, BS8 2LG.
E-Mail : stewart@visint.co.uk
Tel : +44 (0)117 973 0597
Fax : +44 (0)117 923 8522
WWW : http://www.visint.co.uk/
ICQ : 19149382