Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47744 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19124 invoked from network); 2 Apr 2010 16:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2010 16:38:55 -0000 Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:56395] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/DD-44965-E9D16BB4 for ; Fri, 02 Apr 2010 11:38:55 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id 3D2FD50502; Fri, 2 Apr 2010 19:18:39 +0300 (IDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 2 Apr 2010 09:37:19 -0700 Message-ID: <698DE66518E7CA45812BD18E807866CE03FA7FC1@us-ex1.zend.net> In-Reply-To: <4BB4F50D.9090006@zend.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] On constructors: BC Break and Class compiler Improvements Thread-Index: AcrR0lg5itNFkDGkRTKiPtdCsME4lgAsCR8w References: <4BB4EC2F.1020502@smashlabs.com> <4BB4F16B.7020402@zend.com> <4BB4F50D.9090006@zend.com> To: "Stas Malyshev" , "Pierre Joye" Cc: "Ralph Schindler" , "internals" Subject: RE: [PHP-DEV] On constructors: BC Break and Class compiler Improvements From: andi@zend.com ("Andi Gutmans") > -----Original Message----- > From: Stanislav Malyshev [mailto:stas@zend.com] > Sent: Thursday, April 01, 2010 12:34 PM > To: Pierre Joye > Cc: Ralph Schindler; internals > Subject: Re: [PHP-DEV] On constructors: BC Break and Class compiler > Improvements >=20 > Hi! >=20 > > Well, I think the question here is more about dropping old style > > constructor that case sensitive functions/methods name. I'm in favour > > of dropping in php-next. >=20 > I don't feel comfortable with dropping class-named ctor altogether (big BC > issue) but dropping it in NS-classes seems to be easier (technically, it's NOT > the same name - the real class name is namespace\class) and would solve > 99% of the problem without having almost any BC impact. I agree. I would drop class-named ctors within namespaced classes and possibly in the next major version also do an E_STRICT for these in regular classes to try and get people to convert to __construct(). At a time where there's an increased focus on exposing dynamic services I think the class-named ctors is becoming increasingly problematic. Andi