Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60902 invoked from network); 3 Sep 2010 21:42:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2010 21:42:17 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:44874] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/01-52399-8BB618C4 for ; Fri, 03 Sep 2010 17:42:17 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 81F0870003E6 for ; Fri, 3 Sep 2010 22:42:13 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id gh-OE7+LwLRp for ; Fri, 3 Sep 2010 22:42:13 +0100 (WEST) Received: from mail2.ist.utl.pt (mail2.ist.utl.pt [IPv6:2001:690:2100:1::c]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 4AFCA700044A for ; Fri, 3 Sep 2010 22:42:13 +0100 (WEST) Received: from cataphract (a79-168-249-157.cpe.netcabo.pt [79.168.249.157]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 3E75A2009908 for ; Fri, 3 Sep 2010 22:42:13 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <81.35.47051.C61C08C4@pb1.pair.com> <2B.21.27233.A1ED08C4@pb1.pair.com> Date: Fri, 03 Sep 2010 22:40:35 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: User-Agent: Opera Mail/10.61 (Win32) Subject: Re: [PHP-DEV] Re: remove or fix zend_object_proxies From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Fri, 03 Sep 2010 22:25:00 +0100, Michael Wallner 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