Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:93931
Return-Path: <cmbecker69@gmx.de>
Mailing-List: contact internals-help@lists.php.net; run by ezmlm
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 95791 invoked from network); 13 Jun 2016 11:36:59 -0000
Received: from unknown (HELO lists.php.net) (127.0.0.1)
  by localhost with SMTP; 13 Jun 2016 11:36:59 -0000
Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass
Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass
Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.22 as permitted sender)
X-PHP-List-Original-Sender: cmbecker69@gmx.de
X-Host-Fingerprint: 212.227.17.22 mout.gmx.net  
Received: from [212.227.17.22] ([212.227.17.22:61611] helo=mout.gmx.net)
	by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
	id C2/0A-12403-9DA9E575 for <internals@lists.php.net>; Mon, 13 Jun 2016 07:36:58 -0400
Received: from [192.168.2.102] ([217.82.228.97]) by mail.gmx.com (mrgmx102)
 with ESMTPSA (Nemesis) id 0LkBPy-1biiip3YTK-00c79u; Mon, 13 Jun 2016 13:36:49
 +0200
To: internals@lists.php.net, Dmitry Stogov <dmitry@zend.com>
References: <BY2PR0201MB1784853FB024646DE2CE2E84BF500@BY2PR0201MB1784.namprd02.prod.outlook.com>
 <33b39115-fd63-5973-4a90-7c6d526af3c4@fleshgrinder.com>
Message-ID: <49f6438e-7eb2-850b-1b14-e86250eca768@gmx.de>
Date: Mon, 13 Jun 2016 13:37:01 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <33b39115-fd63-5973-4a90-7c6d526af3c4@fleshgrinder.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:j07NUUnTRFK3ncYu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JNW+ygItm9PBnIl
 sau0iFA
Subject: Re: [PHP-DEV] [RFC] Throw Exception on Attempt of
 ConstantRedefinition
From: cmbecker69@gmx.de (Christoph Becker)

On 11.06.2016 at 17:01, Fleshgrinder wrote:

> On 6/10/2016 10:06 PM, Dmitry Stogov wrote:
>>
>> Please review: https://wiki.php.net/rfc/constant_redefinition
> 
> This would be a breaking change in a minor release again.
> 
> -1
> 
> However +1 for PHP 8.

I'm also somewhat concerned with regard to turning a notice into an
exception in a minor version.  I would prefer to have an alternative
voting option to deprecate constant redefinition in 7.1 and to finally
disallow it in 8.0.

It might be helpful to make a rough plan when PHP 8.0 will be released.
If that will be far in the future (say 5 years or even more), such a
change might be okay for a minor version (presumably nobody wants to
wait such a long time for this and similar improvements), but if PHP 8.0
will be released much earlier, it might be tolerable to wait and to not
break semantic versioning.

-- 
Christoph M. Becker