Re: serializing references, almost without modifications
| From: | thies at digicol dot de | Date: | Thu, 20 Jul 2000 12:03:50 +0000 |
| Subject: | Re: serializing references, almost without modifications | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25206@lists.php.net to get a copy of this message | ||
On Thu, Jul 20, 2000 at 10:10:59AM +0200, waldschrott wrote:
> > not in the Zend Engine. I don't think it's such a great thing to have
> > but if you think it is important go ahead and implement it.
>
> You don´t think restoring an application states is useful? without the
> need to create mature __sleep() and __wakeup() functions?
> Hm... why not? *If* I´m able to serialize objects and *if* im able to
> restore it´s method after unserializing I *should* be able to
> unserialize it completly including aliases and so on...
hmm - how do you want to serialize resources then
(db-connections, open-files etc). if the whole argue is about
completeness you _need_ to take those into consideration!
also: what happens to "outside" references (references that
point to variables that are no serialized)?
i guess we could write something that would go thru the
"to-be-serialized" data once before serializing an than keeps
the refs (not too sure about if we need to reorder some stuff
so that the unserialize will work) -but- i kinda dislike the
idea. "it simply feels wrong" - but that's my personal
opinion.
tc
>
> 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 ° · ° . ¤ ·
>
>
> --
> 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
--
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