Re: serializing references, almost without modifications

From: Date: Thu, 20 Jul 2000 09:03:05 +0000
Subject: Re: serializing references, almost without modifications
Groups: php.dev 
Request: Send a blank email to php-dev+get-25190@lists.php.net to get a copy of this message
On Thu, 20 Jul 2000 10:10:59 +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... > Its an interesting question: what does it mean to "restore an applications state"? Given that there is a Web server, loading a PHP module, that then sucks up a PHP script and then spits out a stream of HTTP to the Web browser.... in a sense, that HTTP stream is your serialization. Saving and restoring state makes sense with stateful applications, but on the Web, which is basically stateless (ignoring the backend stuff), there is little need for it. Maybe it is even dangerous.... 0.02c from jalal

« previous php.dev (#25190) next »