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

2017-01-29 Thread Christoph M. Becker
On 29.01.2017 at 20:33, 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 P

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

2017-03-05 Thread Rowan Collins
On 29/01/2017 19:33, 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.

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

2017-01-29 Thread Wes
Great! We can get rid of one of the most ridiculed "features" of the language :D http://php.net/manual/en/language.types.array.php#language.types.array.donts "This is wrong, but it works."