Re: Serializing objects, using __sleep and __wakeup?

From: Date: Fri, 07 Jul 2000 13:40:21 +0000
Subject: Re: Serializing objects, using __sleep and __wakeup?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23805@lists.php.net to get a copy of this message
Hi, Take a look at http://marc.theaimsgroup.com/?l=php4beta&m=95317383626196&w=2 s/_sleep_/__sleep/ s/_wakeup_/__wakeup/ Regards, STefan ----- Original Message ----- From: David Eriksson <david@home.2good.com> To: <php-dev@lists.php.net> Sent: Friday, July 07, 2000 3:03 PM Subject: [PHP-DEV] Serializing objects, using __sleep and __wakeup? > > I have a few classes in my CORBA extension, and I want them to work > transparently with PHP:s session management, they need to be serializable. > > Right now I believe that value.obj.properties is serialized, but there I > just store an index to a list of internal data... (like the COM extension) > > I looked in ext/session/session.c and ext/standard/var.c and it seems like > it is possible to make member functions called __sleep and __wakeup, which > might be what I need. > > Can anyone explain how these work? I have not been able to find any docs > or examples that explain this. > > Regards, > > -\- David Eriksson -/- > > "An expert in a particular computer language is really an expert > in the work-arounds necessary to use this language to perform > useful work." - Richard B. Johnson > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#23805) next »