Re: Re: remove or fix zend_object_proxies

From: Date: Fri, 03 Sep 2010 21:40:35 +0000
Subject: Re: Re: remove or fix zend_object_proxies
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-49566@lists.php.net to get a copy of this message
On Fri, 03 Sep 2010 22:25:00 +0100, Michael Wallner <mike@php.net> wrote:
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?
Well... zend_object_create_proxy is broken. I'd say Dmitry broke it in revision 200527: http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_objects_API.c?r1=200526&r2=200527& zend_object_create_proxy should be changed to pass a no-op implementation to zend_objects_store_put for the dtor callback or Dmitry's change should be reverted. -- Gustavo Lopes

« previous php.internals (#49566) next »