Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78983 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4884 invoked from network); 19 Nov 2014 08:45:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2014 08:45:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:61458] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/E2-15277-0B85C645 for ; Wed, 19 Nov 2014 03:45:37 -0500 Received: by mail-la0-f46.google.com with SMTP id gd6so107667lab.5 for ; Wed, 19 Nov 2014 00:45:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=NCrfj9teQT1GIG0BHwjwauvIlohGdAxlw5w/zVh4MGA=; b=P4Eu8gHr+MQ9smyub++LtB0Fc9p/hsWWfMZyODELkyrOLMLiNvGXm5gkg6xZArxR2L 7F/lmkbrXn79lIL/mZi1RbrCtyaoX/1Foed11KSX3Pa1WypwFzQ4L2VOziusLOzX5f56 EQOEDeeqS/ISp2xxzqSXNNr5dm5uDiQersUgFodhUgzgr7L7ib9JtAO7RRXqHk384PY+ MDgOIbht/ibXHIikTf4/kr9Wr77ejCff7fWi1McMW7/BRWZTzuV9Qlz5xS66NvrTClIn lhH30m3FWVYkLXB9cOvYwUZO8n3EqfVnw7op+ngWAWoUd+uufXHgMSXTvFVsNZV6XUy0 OF8g== X-Received: by 10.153.4.2 with SMTP id ca2mr4207402lad.30.1416386733078; Wed, 19 Nov 2014 00:45:33 -0800 (PST) MIME-Version: 1.0 References: Date: Wed, 19 Nov 2014 08:45:32 +0000 Message-ID: To: Julien Pauli , Yasuo Ohgaki Cc: Levi Morrison , internals Content-Type: multipart/alternative; boundary=001a1134291616fdbd0508323c27 Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: patrickallaert@php.net (Patrick ALLAERT) --001a1134291616fdbd0508323c27 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Wed Nov 19 2014 at 9:31:50 AM, Julien Pauli a =C3=A9cri= t : > On Wed, Nov 19, 2014 at 5:15 AM, Yasuo Ohgaki wrote: > > Hi all, > > > > On Wed, Nov 19, 2014 at 8:11 AM, Levi Morrison wrote: > > > >> 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. > >> > > > > No reason to keep old constructor for PHP7. IMHO. > > +1 for removing it PHP7, announce depreciation now. > > This is obviously a +1. > > Julien.Pauli > +1 --001a1134291616fdbd0508323c27--