At 11:03 AM 11/13/2003 +0000, Wez Furlong wrote:
> >     2. session support for internal classes. should we have a
Serializable
> >interface which classes inherit, or have sleep and wakeup
> >         handlers in the zend_object_handlers structure ?
>
> I guess it's possible. In most cases I think internal classes won't be
> serialized though, such as COM. I don't think it needs fixing though. It's
> something which can be added whenever...

Actually, people have already tried to serialize PHP5 COM objects
and hit a segfault :-)

It should be reasonably simple to serialize COM objects (there are
a bunch of IPersistXXX interfaces we could use); the limitation right
now is that our internals don't provide a sane way to implement it.

I can probably whip up a serialization interface over the weekend;
it would work a bit like the iterators stuff - driven by a C interface
that could wrap a userspace implementation if desired (although I'd
be more interested in the internals here).

Sounds fine to me.


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to