Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32620 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54270 invoked by uid 1010); 3 Oct 2007 21:58:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54255 invoked from network); 3 Oct 2007 21:58:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2007 21:58:58 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:30795] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/A2-38275-0A014074 for ; Wed, 03 Oct 2007 17:58:57 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 3 Oct 2007 23:58:53 +0200 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 Oct 2007 14:51:05 -0700 Message-ID: <47040EC5.5050009@zend.com> Date: Wed, 03 Oct 2007 14:51:01 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= CC: Sebastian Bergmann , internals@lists.php.net References: <1191444490.21871.38.camel@johannes.nop> In-Reply-To: <1191444490.21871.38.camel@johannes.nop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2007 21:51:05.0593 (UTC) FILETIME=[7FA22690:01C80607] Subject: Re: [PHP-DEV] Class Posing From: stas@zend.com (Stanislav Malyshev) > For an extension, which the current implementation is, using the > register function is the best approach I see. Else we would have to to I would prefer some special function to new handler. This feature has very narrow use (I still not entirely convinced it even belongs to core - it's too kludgy and can be easily worked around by using correct patterns). > But all that are implementation details. The question is: Do we need > such a feature inside Core PHP or is an extension overloading ZEND_NEW > enough? I'd say it's better to overload class' create_object and not an opcode. And I personally don't feel it's something that should be widely used, so Core may not be the best place. Maybe having some test extension (disabled by default, enabled on test machines) would be a better way? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com