Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98098 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47752 invoked from network); 31 Jan 2017 22:46:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 22:46:52 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 84.19.169.162 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 84.19.169.162 unknown Received: from [84.19.169.162] ([84.19.169.162:56996] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/8D-51557-BD311985 for ; Tue, 31 Jan 2017 17:46:52 -0500 Received: from [192.168.2.34] (ppp-46-244-167-123.dynamic.mnet-online.de [46.244.167.123]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 8DD0850BB3; Tue, 31 Jan 2017 23:46:48 +0100 (CET) Message-ID: <1485902801.28761.5.camel@kuechenschabe> To: Rowan Collins Cc: PHP Internals Date: Tue, 31 Jan 2017 23:46:41 +0100 In-Reply-To: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> References: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Deprecate and Remove Bareword (Unquoted) Strings From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Sun, 2017-01-29 at 19:33 +0000, Rowan Collins wrote: > Currently, if the constant FROB_ACTIVE is not defined, the code "echo > FROB_ACTIVE;" results in an E_NOTICE and the string 'FROB_ACTIVE' > being displayed. I would like to propose that this be changed to an > E_WARNING in PHP 7.2, and to an Error in PHP 8.0. related: There is another context where unquoted strings are used: $a = [ "foo" => "bar" ]; echo "Let's go and have a drink in a $a[foo]!"; Any thoughts about continuing to allow that? johannes