Re: Re: remove or fix zend_object_proxies
| From: | Pierre Joye | Date: | Fri, 03 Sep 2010 21:50:50 +0000 |
| Subject: | Re: Re: remove or fix zend_object_proxies | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49567@lists.php.net to get a copy of this message | ||
On Fri, Sep 3, 2010 at 11:40 PM, Gustavo Lopes <glopes@nebm.ist.utl.pt> wrote:
> 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.
Is there any bug report about this breakage?
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org