Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35752 invoked from network); 17 Jan 2015 05:54:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2015 05:54:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.43 mail-qa0-f43.google.com Received: from [209.85.216.43] ([209.85.216.43:61393] helo=mail-qa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/D9-16533-C19F9B45 for ; Sat, 17 Jan 2015 00:54:36 -0500 Received: by mail-qa0-f43.google.com with SMTP id v10so18300017qac.2 for ; Fri, 16 Jan 2015 21:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=v7cprA5p1IVZT2pNJm13KAeYbkY4AJYXhwg8JDT+8IY=; b=biqvu9qoWeabWie6zlrctj/gCyAGjy1tOX1AYEbGqFkCz+N0twvmAKV6HJQJ6HVToj TA6A1jGZN1Pr5xUaVNA9lVEODH7B8rrOZdV87XJ5V/Mnf+8Jud+LNXFoaoHR/LSvBAO5 fSWbQyo/G9qANK0CsACgFadjVdB5M5ZiqCyCub9KGGMTlp8lkbszzStkVfNOSesE2OC4 3T3GTS6u8vVZjsaZ0uRSIVIO91NkKhsMQxcFIUs4xyUgH2vhhRl7NgD52SIr6+ofJXYk LbdkwD+JOaxZuq8VUeNyDx4ZR3uj1ROHETJfBUC5Qm/GbDKK37aGCwtZe5k26gxbIBhe LbKQ== MIME-Version: 1.0 X-Received: by 10.229.37.136 with SMTP id x8mr31795347qcd.30.1421474073594; Fri, 16 Jan 2015 21:54:33 -0800 (PST) Received: by 10.140.22.106 with HTTP; Fri, 16 Jan 2015 21:54:33 -0800 (PST) In-Reply-To: References: Date: Sat, 17 Jan 2015 06:54:33 +0100 Message-ID: To: Levi Morrison Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, Nov 19, 2014 at 12:11 AM, Levi Morrison wrote: > Dear Internals, > > I am proposing an RFC[1] to remove PHP 4 constructors in PHP 7. If > accepted, methods with the same name as their defining class will no > longer be recognized as constructors. As noted in the RFC, there are > already many situations where we do not recognize these methods as > constructors, such as in namespaces and traits and when `function > __construct` is also present. > > Andrea Faulds has kindly written a utility that identifies when a PHP > 4 constructor is defined[2]. It does not automatically change the code > for liability reasons. The utility PHPMD[3] can also detect this but > has a false positive when `__construct` is also defined. Not much to say about it as it is a taste/yes/no thing. Let wait the required period and move to vote, I do not see much needs to argue in a circular way forever :) Cheers, -- Pierre @pierrejoye | http://www.libgd.org