AW: [PHP-DEV] Questions about "static" and serialization
| From: | Matthias Pigulla | Date: | Wed, 26 Oct 2005 21:19:29 +0000 |
| Subject: | AW: [PHP-DEV] Questions about "static" and serialization | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-19742@lists.php.net to get a copy of this message | ||
> Von: Wez Furlong [mailto:kingwez@gmail.com]
>
> As you mentioned, static properties and statically scoped
> variables don't belong to an object instance, so it doesn't
> make sense to serialize them.
Ok, but on the other hand they are just variables - so the question was
if there is any (possibly userland) way to capture them in the line with
"normal" session handling, by using (un)serialize or whatever.
As to persisting and restoring structures like the singleton pattern, I
just noticed that the builtin serialization/persistence mechanisms don't
care about object identity at all... :(
Best regards,
Matthias