Re: informational copy, was: serializing references [...]
| From: | Zeev Suraski | Date: | Thu, 20 Jul 2000 03:57:08 +0000 |
| Subject: | Re: informational copy, was: serializing references [...] | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25171@lists.php.net to get a copy of this message | ||
At 02:43 20/07/2000, waldschrott wrote:
ah zeev, did not knew that you didn´t follow, here is the final result we´ve got: SM>> The only way I see after thinking a bit on this is sort of LZW SM>> algorithm SM>> on variables. While serializing, keep serialized zval's in some SM>> list/hash, SM>> and if you see some zval twice, with is_ref set, you mark it as SM>> "referenced" in serialized data, pointing out which var it refers SM>> somehow SM>> (maybe just with running number). I'm not sure it is going to work SM>> in SM>> 100% of cases, needs much thinking about that. and further not to slow the others down that feature should by default be off able to follow?Well that would be the obvious way to implement it. As I said, there's nothing inherently impossible about implementing serialization of references; This feature was pretty much independent from the entire OO discussion we had on php-dev. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/