Re: [RFC] Deprecate and Remove Bareword (Unquoted) Strings

From: Date: Tue, 31 Jan 2017 22:46:41 +0000
Subject: Re: [RFC] Deprecate and Remove Bareword (Unquoted) Strings
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-98098@lists.php.net to get a copy of this message
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

« previous php.internals (#98098) next »