Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110759 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74373 invoked from network); 28 Jun 2020 15:13:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jun 2020 15:13:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 691D51804CF for ; Sun, 28 Jun 2020 07:01:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 28 Jun 2020 07:01:44 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id g10so578590wmc.1 for ; Sun, 28 Jun 2020 07:01:44 -0700 (PDT) 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:content-language; bh=BRcb9tSCC8/0YpJdH1aGd+3s1oDRm/S0z7ZCVTk0PYI=; b=hml/6cImQck/RdE9xVbxJXu9IJdZtfNPJiuZi1ibT9vZC6cCU5dOdSQTtKmy11smLR IeYZlvp13JQK40SiHBhuKBUqhR30LaeE++WAzq7bjby0auZIlqtGjUgsuCjky0oRxrdd YeFYc6kbg/hhHN/Q9rnhMgaPMbUc6Dxmt4Ua6IhQjuMQA0t/VccJSk+htfcWmdb7hrak dX+5I+zJgLlQ2aXkyZi0b6/kCSU+GXkJPrbb9pUAshSAKT9ylovPwrH8gegp4lVw3ANa YZ4DeomPStugWau1L/8dgB2nvTkMCtOX34ur2xpIjReZ6xlVyEGicIJWyaNAiMBpi8HP /OWQ== 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 :content-language; bh=BRcb9tSCC8/0YpJdH1aGd+3s1oDRm/S0z7ZCVTk0PYI=; b=RpwD2HKy7v9+/fJjjh2UGJFqXlSj+VkRQ8oc9Vwr6HBRHmIcCfem51lDOXhzRPaTyY 8xYEInvIPA6fzdF+ay0LW14bFoCz26IkOafopvNhiP7H2YsZxIV7Y29Jx5MJM1uFLPvU KmRJBH6zQ9PEDfOVCUmaWZ6E7X13xbzCcKCN4wpFa2UMfKloTcZwiWhmU3Mp2Y0UL5IA BeYaqLW0/quOWpopvdfDBy/9mv+3zhZvAYwVjfbovFPZqWYulStNyABtf7p6N/QwiCEb 4A6//5WAdHx3vIRqiw6ou2/cyMrhRua6PuSpOiI1unjIWEe+ltKK8Iv16a/hSh8qD7MY bMZA== X-Gm-Message-State: AOAM530wFwmqdBursmzggmSrs5gZMTkT8xGa5TsjqeUkB2czGxMHym2e d4qVwrOvBpKoXV5OY69TQpjPw8AK X-Google-Smtp-Source: ABdhPJx73VL7QRLekxnCmMLRUtvcR5lgs3dPuRfcAayQs/HSKhKXoKeUUUHLvOK+2Z5iFbYifrQPqA== X-Received: by 2002:a1c:4d05:: with SMTP id o5mr12610650wmh.130.1593352902804; Sun, 28 Jun 2020 07:01:42 -0700 (PDT) Received: from [192.168.0.22] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id k185sm22169982wmk.47.2020.06.28.07.01.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jun 2020 07:01:42 -0700 (PDT) To: internals@lists.php.net References: <5ef7505d.1c69fb81.a3d3d.67e7SMTPIN_ADDED_MISSING@mx.google.com> Message-ID: <5bca8ad2-a85c-e9c9-20a9-dab6f3bfd6df@gmail.com> Date: Sun, 28 Jun 2020 15:01:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Subject: Re: [PHP-DEV][RFC][VOTE] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: rowan.collins@gmail.com (Rowan Tommins) On 27/06/2020 23:53, G. P. B. wrote: > [...] there are only 3 parse errors which have the added > information of what the token represents, namely T_SL, T_SR, and > T_PAAMAYIM_NEKUDOTAYIM. I'm not sure what you mean by there being only three. Since PHP 5.4, all parser errors include the content of the token as well as its name, even when this is basically repeating the same word, such as "unexpected 'echo' (T_ECHO)". There's even a bug in the implementation meaning that casts repeat the name three times, e.g. "unexpected '(int)' (int) (T_INT_CAST)". This is why I was able to get a working prototype for new error messages fairly quickly, and have had a draft PR open for nearly two weeks, but also why I've spent a bit of time refining it to make sure edge cases are handled better. > I find it highly frustrating, and borderline offensive, that we are being > asked to go from a simple, non BC breaking, easy to enact change, to a > semi-major overhaul of how error messages should look like. I understand the general sentiment, that there were a lot of people in the previous thread saying re-wording was a good idea, and not many offering to work on it. I also appreciate that I hadn't provided any public updates on my progress, and what hurdles needed to be over-come. But you did know I was working on a patch, so the simple solution would have been to ask me before opening the vote. Regards, -- Rowan Tommins (né Collins) [IMSoP]