Re: Re: remove or fix zend_object_proxies

From: Date: Fri, 03 Sep 2010 21:25:00 +0000
Subject: Re: Re: remove or fix zend_object_proxies
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-49565@lists.php.net to get a copy of this message
Am 03.09.2010 21:07, schrieb Gustavo Lopes: [...]
Although the Zend engine also has some parts with poor proxy objects supports (e.g. I don't think you can use proxy [...]
IMO one cannot even name it "support". [...]
Additionally on object destruction, at the latest on shutdown, (the default) zend_objects_destroy_object causes a SEGV because zend_proxy_objects actually are not zend_objects and don't have a class entry.
I don't see the issue here. You should define an appropriate callback. If they're not zend standard objects, don't use zend_objects_destroy_object in your zend_objects_store_put call (or NULL, which defaults to zend_objects_destroy_object). The store accepts anything and even has a clone callback specifically to make easier the cloning of non-standard Zend objects.
I didn't do anything. I tried to use the API like zend_object_create_proxy. I wonder what you're trying to tell me? Mike

« previous php.internals (#49565) next »