Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46282 invoked from network); 29 Jan 2017 23:03:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2017 23:03:32 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:61830] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/09-06271-1C47E885 for ; Sun, 29 Jan 2017 18:03:30 -0500 Received: from [192.168.2.109] ([217.82.227.219]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LeeNW-1c8DaN2Rck-00qSBQ; Mon, 30 Jan 2017 00:03:25 +0100 To: Rowan Collins , PHP Internals References: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> Message-ID: <68b674b4-c6e2-b663-6d78-e32c52857a11@gmx.de> Date: Mon, 30 Jan 2017 00:03:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xJisVIhiFMcVUjq6KoU01pS9amZbYjDtH4uhEFNsfqz3pBOLgKf bYpXuFXlroVNATZ/GdqRNmjEEiqFafDXIqOPi2VwSINoatyPm9ty8mdUu2n5JWTAiANBiI9 A0ADPtRK0I1qCG/qfcpAPuV+fh7wv7UlaI1s8sPY/OrmXPiqsJ8euFYcOHnHrAckkT7O4mO 4qQcBc1CCZGJt1gII2bMw== X-UI-Out-Filterresults: notjunk:1;V01:K0:awTp+vUaI4Q=:qfeoW0KYkp6coaYgx0yIp6 pJWlhYt+VILLyFCqNvoIB/CO+56XF3i5NqkK0mhe1L9Bffq1GoC8MRrJVMwMSuUEPTNqC3K7a nyVy9gXjFZtLD8FFcIo8G3RHrvFx1faXkdZNo9z935C72o7H9cKfFiX7c6jxOZt6nGqMvA3VM Z/bIalY9olwq9Hk69GTuSB6gVbKI6RmDzICxAbY4672G7JmTZf8c1iSqHqjZEk7DHVRxz7Fl1 9SplQ4n9Xl01PK9S0mXbdHC+yrcXYsGu8Y93vw2+quWl4iOXP6Cik6aKHeK/7x7PNX0SLQ0/F fcVB1wTJ5KkJYUfzNdhsScT9pH2WQNza+5r+S6htLn1XgrBQJYmFPGZthDBTljnV4kifhMix/ xhPy+wFL5EM3wue+cZtNOZ8lqmTRuQQp5TyIgQO8qRfyMccs6FaXxMWMg1SdhdyMTsNjgDLGk 1xZYTacA5zXNHIJ7+vjorQvRQRpyIFDVk2ieRdfKRaxB2rlhhu6IIOZPiAqcXB1afdt8+h7rg KpU+eswG8WeeMKbAKZ/cd5yMB5lFTByH5YYShJa/dtU/7ZzGCwSPFdGQOHu9RVFZm3yfn6Aoe 9hiF2P2Ly1Ywm+Vz99aDz+IbgwADwQMDlmfljw9Qi1PngKGdHU2JzB6Du0QcAtl86BJb0QccY p+samHVnyjyEtjbYX8WuHxKLje/9JEGZlwV7APAOwvB8gM0055BRVcFzaYwtbHZTqzaNbdtBH Do9wc9KfbRk9PefcWwHH4tYuiMj+fahzyJZBeQlHeg0yk3P59KRRUoT4gXAMqOt8tn2OZcIgt MARLbrt Subject: Re: [RFC] Deprecate and Remove Bareword (Unquoted) Strings From: cmbecker69@gmx.de ("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 PHP 8.0. > > My reasoning for this includes: > > - consistency with other "undefined" errors, including the otherwise > identical "echo \FROB_ACTIVE;" > - the fallback to string appears to be largely undocumented except to > discourage its use > - the error can mask serious bugs, such as when mis-typing keywords > > I have tried to anticipate some of the questions that will be raised, so > have drafted an RFC rather than trying to fit all the detail into one > e-mail: https://wiki.php.net/rfc/deprecate-bareword-strings > > Please read my proposal, and let me know your thoughts. I have placed > the RFC "under discussion", but will be happy to modify it based on > feedback, and am in no haste to put it to a vote. Thanks for bringing this forward, Rowan! I'm +1 on the proposal by all accounts. -- Christoph M. Becker