Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98406 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86908 invoked from network); 5 Mar 2017 22:45:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2017 22:45:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.175 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.175 mail-wr0-f175.google.com Received: from [209.85.128.175] ([209.85.128.175:33974] helo=mail-wr0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/16-10274-CF49CB85 for ; Sun, 05 Mar 2017 17:45:16 -0500 Received: by mail-wr0-f175.google.com with SMTP id l37so105243291wrc.1 for ; Sun, 05 Mar 2017 14:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=NjhQZ66zs/QRxh0hGYqUciDYqgp7SS+AXCmcouo8HPg=; b=AbNPypCysJgUCHkI3l4Yd7jdMTn8RdV2AaVDvMYKqEiy5h6a/rO/x1KpbRi5/wqTW3 gkl8pur8N9VjxuaRpqBQfYR6LmklR5ednlkS4VvHxjOJmsuTNzd5rSRHunqfShzYtjtT vV2CkCvm/OGzUXKgRL0anTQWId8aJQfrZz2b0szo8TjkD8luGumsBzH5NwMQk48Dys+4 qT0gJaUHaU8Ck+/wogExv1W7Xcb48H27T5Bf9KLrNB8ZYniI0dblCunLnWq7l2R/7KAw OvyuuQnGprhS5uewzy2VCsn4q7DPwJTUsO6mB25/4v3TG7XvFodTPBmTN/ph2p9vXbX9 dflw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=NjhQZ66zs/QRxh0hGYqUciDYqgp7SS+AXCmcouo8HPg=; b=dYq9VnIZXqfSHZLDQ6RRbJYB5cHjbIUaSxJ9SzShkBBXXTjLM9nu4XO8ZIYyLn6AN/ O8J+QaZC48gaFi8jfl+Fpz//2rKHJHB4QHNv0Z0hrtnY6TTdQMRshTTmaEKfAQLYPSlu DNX575QcKL7OSGfiyvG3EYfgPbaiRywjmOM6BJAExBvRPh0RfltZ5xMCgu3KfodskHyt 18LhwVxl0iW0HE3BPl7/nF7UHAvYSK+DGtFudVzpy27paEfbK9H+oor9dXxogkhhRkGj 1/XeyIbES3c1+kuMBFHek9eAiM5HK36loOpFDFBVAUspMTing/j1UZMI4oU+YQo5a3zy Fn0Q== X-Gm-Message-State: AMke39nyVXmwBeP/6ohG6wAPnJXEWU/B9U+JwC9C3Bp5aPcitsQCrjeIhrTsa1kTReHkTA== X-Received: by 10.223.171.239 with SMTP id s102mr11320684wrc.23.1488753913054; Sun, 05 Mar 2017 14:45:13 -0800 (PST) Received: from ?IPv6:2a00:23c4:4bd2:6e00:1952:79fc:d4a0:8acd? ([2a00:23c4:4bd2:6e00:1952:79fc:d4a0:8acd]) by smtp.googlemail.com with ESMTPSA id 17sm24586922wru.16.2017.03.05.14.45.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Mar 2017 14:45:11 -0800 (PST) To: PHP Internals References: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> Message-ID: Date: Sun, 5 Mar 2017 22:45:12 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <0c5fc86b-5050-fe73-7afa-b3e5a38ad370@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [RFC] Deprecate and Remove Bareword (Unquoted) Strings From: rowan.collins@gmail.com (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. > [...] > https://wiki.php.net/rfc/deprecate-bareword-strings Hi, I have made some minor updates to the above RFC, and would like to open it for voting in the next few days. Changes since I first posted the RFC are: - Expanded the rationale for using E_WARNING rather than E_DEPRECATED. I always anticipated this would be the most contentious part of the proposal, but am convinced the peculiarities of the situation make this the best choice. Please read that section carefully if you are concerned, and let me know if anything remains unclear. - Settled on a proposed wording for the new Warning. I spent some time considering the best phrasing and punctuation, but if anyone would like to suggest an improvement, I am open to feedback. - Clarified the history of the feature, having successfully built PHP 2 from the archived source, and confirmed that bare words were a syntax error. As such, no non-beta version of PHP allowed unquoted strings without issuing a Notice. - Added links to Pull Requests for both php-src and php-langspec to implement the proposed wording. Amusingly, I had to change a test in php-src which seems to have been *accidentally* using an unquoted string; apparently, the configuration of that test is such that the E_NOTICE was suppressed. Please let me know if there is any feedback I should take into consideration before opening this to a vote. Regards, -- Rowan Collins [IMSoP]