Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31365 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66010 invoked by uid 1010); 2 Aug 2007 07:49:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65980 invoked from network); 2 Aug 2007 07:49:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2007 07:49:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 85.10.196.195 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 85.10.196.195 serveforce1.backendmedia.com Linux 2.6 Received: from [85.10.196.195] ([85.10.196.195:50050] helo=serveforce1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/00-63109-86C81B64 for ; Thu, 02 Aug 2007 03:48:57 -0400 Received: from [192.168.1.43] (56-246.6-85.cust.bluewin.ch [85.6.246.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by serveforce1.backendmedia.com (Postfix) with ESMTP id 723BE1224600; Thu, 2 Aug 2007 09:50:31 +0200 (CEST) Message-ID: <46B18C41.5010408@pooteeweet.org> Date: Thu, 02 Aug 2007 09:48:17 +0200 User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: Derick Rethans CC: Andi Gutmans , =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , Etienne Kneuss , internals@lists.php.net, Ilia Alshanetsky References: <46AE49B3.2070100@php.net> <1185883035.23889.31.camel@johannes.nop> <698DE66518E7CA45812BD18E807866CE7C10BB@us-ex1.zend.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-backendmedia-com-MailScanner-Information: Please contact the ISP for more information X-backendmedia-com-MailScanner: Found to be clean X-backendmedia-com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.1, required 6, RDNS_DYNAMIC 0.10) X-backendmedia-com-MailScanner-From: mls@pooteeweet.org X-Spam-Status: No Subject: Re: [PHP-DEV] Fix inconsistencies in OO calls From: mls@pooteeweet.org (Lukas Kahwe Smith) Derick Rethans wrote: > On Wed, 1 Aug 2007, Andi Gutmans wrote: > >> This is not really a fix. When we worked on PHP 5 we deliberately >> decided to relax on all the weird dynamic constructs which didn't >> provide a lot of value for the majority of use-cases. Of course the >> Reflection API was going to be the way to do these dynamic things in >> future. It would also simplify the engine's code. The reason why those >> first constructs work were for BC reasons. We didn't want to break >> existing code but wanted to not add on top of this. >> >> While it may feel inconsistent I still prefer the existing path. Maybe >> for PHP 6 we can even make an E_STRICT message for the old way which >> refers you to the Reflection API? > > I think that'd be a bad idea. I don't see a problem with this patch at > all, and why should people use reflection here? As you're always so much > for BC, I find it strange that you're suggesting to remove something > totally harmless and instead want people to force to use the > slow Reflection API which is meant for introspection... I agree its harmless and easy to learn. Moreover I do not see the benefit of using the Reflection API instead. @Andi: Could you explain to us why you think that this sort of thing should best be done through the Reflection API? regards, Lukas