Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83545 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85933 invoked from network); 23 Feb 2015 06:40:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2015 06:40:49 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.53 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:37171] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/D3-01128-07BCAE45 for ; Mon, 23 Feb 2015 01:40:49 -0500 Received: by mail-oi0-f53.google.com with SMTP id u20so11984977oif.12 for ; Sun, 22 Feb 2015 22:40:45 -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=U3+GPcdJVqkGeTQRRv2dQSZIEw3+xxrJIhMSwoe0oaM=; b=MkyrOghuTY/f8lgiGlNUZtPjpbVtl5upfGVqDMBFN7+mB4NmN5UXTwTos9eV0TgD0/ dHxsTkkYOeOajknCBLMdAOLVvm3bv2Gej6LWzbHt0LQpUBGSQKIHD4TUGX7SG09YEoNA OkOrl9FBjss1l38d+DjMLNqLL6N+BxsjuCg0pRRMimRKxpOXs/I4ffmt+dxevM6iqcwR Dd/PpJ6oUvz9Bs1d/ioEliflIvp3Ngd5wQATAfN1CqTrQKL51MNH2Dr+RgLBGIdaHoLZ B8f/jIrwrYZR3RKvP7uzIAL9xJMnO/prgAXkOxh66C5HMPbssz3ZUNchiaFqrneLO2m/ MKHw== MIME-Version: 1.0 X-Received: by 10.60.177.234 with SMTP id ct10mr6392608oec.43.1424673645568; Sun, 22 Feb 2015 22:40:45 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.90.74 with HTTP; Sun, 22 Feb 2015 22:40:45 -0800 (PST) In-Reply-To: References: Date: Sun, 22 Feb 2015 23:40:45 -0700 X-Google-Sender-Auth: N3Z-wnkfNiywlyl54Eo_2C_BLzo Message-ID: To: Yasuo Ohgaki Cc: internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Remove PHP 4 Constructors From: levim@php.net (Levi Morrison) On Sun, Feb 22, 2015 at 11:33 PM, Yasuo Ohgaki wrote: > Hi Levi, > > On Mon, Feb 23, 2015 at 1:39 PM, Levi Morrison wrote: >> >> I have moved the RFC for removing PHP 4 constructors[1] into voting >> phase. As there are a lot of RFCs in discussion and voting right now I >> will leave this RFC in voting phase until the evening (UTC-7) of March >> 6th which is 12 days away; this will hopefully allow everyone to be >> able to review this RFC and vote on it without being rushed. > > > This may be a bit off topic. During this RFC discussion, I mentioned Trait > method > name issue that trait method which has PHP4 constructor name for the class > is > treated as class constructor. > > http://3v4l.org/gHbdq (Trait method is called as constructor) > > If there is __construct() in the class > > http://3v4l.org/HEBMl (Fatal error: A has colliding constructor definitions > coming from traits) > > Is this bug fixed also? Or we have to wait until PHP8? Aside from the new warning that is emitted and the old one that is removed no other behavior is changed. This means the "bug" will remain through the PHP 7 lifecycle even if this RFC passes. If the RFC passes the colliding constructor issue will be removed in PHP 8 when the rest of the old-style constructor support is removed.