Re: serializing references, almost without modifications
| From: | thies at digicol dot de | Date: | Wed, 19 Jul 2000 13:58:15 +0000 |
| Subject: | Re: serializing references, almost without modifications | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25102@lists.php.net to get a copy of this message | ||
On Wed, Jul 19, 2000 at 03:54:22PM +0200, waldschrott wrote:
> > have you ever considered using __sleep() and __wakeup() calls
> > in your class? that would even allow to serialize resources
> > etc.
>
> I have considered! And I remember that you did tell me about 3-4 months
> ago something about __sleep() and __wakeup() by fault, thus I didn´t
> remeber and deleted. The docu did not help me.
>
> If they do exactly what I need (reactivating references in a session),
> why was there a thread about the impossibility to serialize references???
it's a different thing. __sleep() and __wakeup() allow you to
partly write your own serialize handler. please read the
attached sample.
tc
>
> confused regards
>
> --
> o----------0-¬---------O-·---¬----o---®-----o o O ° .
> | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤
> ° ·
>
> 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ °
> o © ° . ·
> | psychedelic experience | gott@kiffen.de | O ° o °
> o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
Attachment: [application/x-httpd-php] sleep.php
Attachment: [application/x-httpd-php] sleep.php