Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58805 invoked from network); 3 Sep 2010 21:25:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2010 21:25:01 -0000 X-Host-Fingerprint: 90.152.193.129 mk090152193129.a1.net Received: from [90.152.193.129] ([90.152.193.129:3188] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/A0-52399-AA7618C4 for ; Fri, 03 Sep 2010 17:24:59 -0400 Message-ID: To: internals@lists.php.net Date: Fri, 03 Sep 2010 23:25:00 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 References: <81.35.47051.C61C08C4@pb1.pair.com> <2B.21.27233.A1ED08C4@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 90.152.193.129 Subject: Re: [PHP-DEV] Re: remove or fix zend_object_proxies From: mike@php.net (Michael Wallner) 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