Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27424 invoked from network); 20 Nov 2014 21:39:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2014 21:39:24 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:44958] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/A0-23592-A8F5E645 for ; Thu, 20 Nov 2014 16:39:23 -0500 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 4E57247549; Thu, 20 Nov 2014 22:39:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-93-104-30-137.dynamic.mnet-online.de [93.104.30.137]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id E939247548; Thu, 20 Nov 2014 22:39:36 +0100 (CET) Message-ID: <1416519555.15061.43.camel@kuechenschabe> To: Levi Morrison Cc: Alain Williams , internals Date: Thu, 20 Nov 2014 22:39:15 +0100 In-Reply-To: References: <546C9E22.6090301@fedoraproject.org> <20141119134632.GV2294@phcomp.co.uk> <546CA8C0.1060707@gmail.com> <20141119143329.GX2294@phcomp.co.uk> <1416476628.15061.4.camel@kuechenschabe> <1416502819.15061.38.camel@kuechenschabe> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Thu, 2014-11-20 at 13:54 -0700, Levi Morrison wrote: > > It is a non-trivial change. Fixing this is not always as some people > > might suggest. > > 1) Identify PHP 4 constructors using one of several tools (including > upgrading to PHP 5.7 and getting E_DEPRECATEDs). > 2) Use one of the several tools that support method rename refactoring > (Netbeans, PhpStorm, and others) to rename the methods to __construct. > > You could probably automate it with a very high degree of success; I > just don't want to automatically change code for liability reasons. I > think you are exaggerating the required work given the tools we have > at our disposal… No you can't. (ok *you* can but not 90% of our users, those depend on external libraries/tools and those can't simply change their API without hurting their adoption rate, which in turn hurts our adoption rate) > I am proposing E_DEPRECATED in PHP 5.7, just as the RFC for using > multiple default statements in switches (which was accepted, by the > way). > > Updating to PHP 5.7 first gives you more time to prepare for this and > other BC breaks for PHP 7. There are already a few, and I suspect > we'll have a few more before it's shipped. Yay! Instead of helping users to keep up to date and respecting their needs we give them reasons to stay on old versions for making things "cleaner". How wonderful. All things said for this thread. johannes