Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42187 invoked from network); 19 Nov 2014 14:41:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2014 14:41:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:43926] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/94-15892-80CAC645 for ; Wed, 19 Nov 2014 09:41:12 -0500 Received: by mail-wi0-f178.google.com with SMTP id hi2so2075206wib.11 for ; Wed, 19 Nov 2014 06:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=rM48g2TbJXS67OVLOek7FEtpQkmMI45ZU3GLcD2o9eM=; b=joZivru4fenRYtOntWifZTcKts+jc1PsFC050kTi+IuDdIVmu+AZqEAzPGE8nrfPPD CSu1wWPq0dnutIsqEnNJa+ZLRpLEPfwXEw2P8fvXdARh5GQV4/3jveKuM5+ByMA6qlRN rH83lPG1PmN0UP6Y1jVtn+z1ML88PlPGlyJTaItuwa0wmPmeObztUrQvltmmxMpGnFKr 044y8RdWYwXNmdW3/n2PcYN26hqEq2HwI9x2di0pI5tsJYLxCREO8AQVfBXruFc8ZjP0 j/QQyEcBsJ9DsB+V5bR6KGWBMFsWIdjhA0lDv91IsulHE2G5I0etPjYB36Aa8L8czTig qZdg== MIME-Version: 1.0 X-Received: by 10.194.58.8 with SMTP id m8mr59692100wjq.43.1416408069345; Wed, 19 Nov 2014 06:41:09 -0800 (PST) Sender: are.you.winning@gmail.com Received: by 10.180.8.36 with HTTP; Wed, 19 Nov 2014 06:41:09 -0800 (PST) In-Reply-To: <546CA8C0.1060707@gmail.com> References: <546C9E22.6090301@fedoraproject.org> <20141119134632.GV2294@phcomp.co.uk> <546CA8C0.1060707@gmail.com> Date: Wed, 19 Nov 2014 14:41:09 +0000 X-Google-Sender-Auth: mO0CxeOWRwsjPkBx0FROWY6tQMU Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7ba97632d4a5090508373307 Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: cw@daverandom.com (Chris Wright) --047d7ba97632d4a5090508373307 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 19 November 2014 14:27, Rowan Collins wrote: > Alain Williams wrote on 19/11/2014 13:46: > >> On Wed, Nov 19, 2014 at 02:41:54PM +0100, Remi Collet wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Le 19/11/2014 00:11, Levi Morrison a =C3=A9crit : >>> >>>> [1]: https://wiki.php.net/rfc/remove_php4_constructors >>>> >>> This will just kill PEAR and most of available libraries on PEAR forge. >>> >>> Yes they are still some use of them >>> Yes keeping PHP 4 for PEAR is a bad idea >>> >> Maybe this would spur PEAR to moving to a modern PHP, they could always >> maintain >> a separate PEAR legacy. PHP 4 support ended some 6 years ago. >> >> > PEAR is not a single organisation who can mass update all the modules; th= e > guidelines could be updated, if they haven't been already, but there woul= d > still be a whole repository full of libraries which used this. > > Now, whether that's acceptable or not, I don't know, but it does highligh= t > the size of the compatibility break. > It would be quite easy to write a tool to detect classes that use the old style, and even automatically fix them in most cases. As BC breaks go, this is about as minimal as it gets for package maintainers. Note that, for users who are insane enough to expect to maintain PHP4-7 support in a single codebase, it's also easily possible to work with both styles even after this change is introduced: class Foo { function Foo() { // invoked as the ctor in PHP4 $this->__construct(); } function __construct() { // invoked as the ctor in PHP5/7 } } --047d7ba97632d4a5090508373307--