Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64571 invoked from network); 18 Nov 2014 23:27:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 23:27:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=julien.breux@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julien.breux@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: julien.breux@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:53596] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/2B-06737-2D5DB645 for ; Tue, 18 Nov 2014 18:27:14 -0500 Received: by mail-lb0-f170.google.com with SMTP id w7so9821507lbi.29 for ; Tue, 18 Nov 2014 15:27:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=dnLU2NkGGRYAooBIUkS0DRaipgZkaWEy7YfoxR016sw=; b=rQ72ecyZxilqL4Jdut8U1JLDoSHH3qD8nHgmbixYChzCE7nT1wIAfld8AYJjQ5u7p/ AVZKCOAGTEskdJkxUqxrO2pCK+S0yblGUxscp17ZfCE9i7D6A8JLsQjP2NOmm7IbIV49 5ukyf/fdZsvn3MSczeu7nSOh+1gSWo0oTCfUVqAsntwN2A4sdz0Y1RhftqSbeRhb9uEj uS7sET0YH9BPVV6C6npl+1/b81rfR4il7wARebsB+DbTKqYGyVCHhx/2epyXR5GDJoPq wvGW0ZF+vRk9ctdS1oVbow8/OnTG4RKGYlKjiwtPJy2/uiqn2f9OyXf66UkgEyPjDEOJ GQSQ== X-Received: by 10.112.139.196 with SMTP id ra4mr2071947lbb.95.1416353231291; Tue, 18 Nov 2014 15:27:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.62.164 with HTTP; Tue, 18 Nov 2014 15:26:51 -0800 (PST) In-Reply-To: References: Date: Wed, 19 Nov 2014 00:26:51 +0100 Message-ID: To: Levi Morrison Cc: internals Content-Type: multipart/alternative; boundary=001a11c33fcc3a4c0505082a6ffd Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: julien.breux@gmail.com (Julien Breux) --001a11c33fcc3a4c0505082a6ffd Content-Type: text/plain; charset=UTF-8 I think that it is great time to end to PHP 4 constructors system for PHP 7. IMO, It's a good RFC. 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. > > Cheers, > Levi Morrison > > > [1]: https://wiki.php.net/rfc/remove_php4_constructors > [2]: https://github.com/TazeTSchnitzel/PHP4_Constructor_Finder > [3]: > http://phpmd.org/rules/naming.html#constructorwithnameasenclosingclass > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c33fcc3a4c0505082a6ffd--