AW: [PHP-DEV] Questions about "static" and serialization

2005-10-26 Thread Matthias Pigulla
> Von: Wez Furlong [mailto:[EMAIL PROTECTED] > > 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 (poss

Re: [PHP-DEV] Questions about "static" and serialization

2005-10-26 Thread Wez Furlong
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. --Wez. On 10/26/05, Matthias Pigulla <[EMAIL PROTECTED]> wrote: > Hi internals, > > I was experimenting with different approaches of maintaining stat

[PHP-DEV] Questions about "static" and serialization

2005-10-26 Thread Matthias Pigulla
Hi internals, I was experimenting with different approaches of maintaining state and serializing objects in PHP5. The problem is handling static class members and static variables inside methods. First, I noted that static variables inside methods are shared between instances. C++ seems to handle