Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110478 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91531 invoked from network); 11 Jun 2020 10:18:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Jun 2020 10:18:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1E1181804CB for ; Thu, 11 Jun 2020 02:02:10 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 ; Thu, 11 Jun 2020 02:02:07 -0700 (PDT) Received: by mail-il1-f173.google.com with SMTP id a13so4742155ilh.3 for ; Thu, 11 Jun 2020 02:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uq5Wf4lz1v6WRbSxNcbVUxXLNzKtVrcAVgmHbCzHMV4=; b=IRfFzZjo5ym2oukL383TUkVaxw3getCBIM7K52BaUCTQ8RlJDk40M33oLhOALoyDkd jh0GfKdVCh/OXVUH6wL++wUtJsJ9zUdvUHty4+rALJaDRQdJ7HBBXDPIwvI21M4mVv6V PqLz7QA5FsFc1RrL/MqCG/qu7uk1oCKEOvxdndsveBABcP+hMrUTN/og4O48/8OuRN4U iYgC5gT4mCwddIMl7RwfKnEctGsXAsHH+hA66XTKASvGonZ+ncLSo9E4JT6XSAwvTMhA KfR2rd37bFhCPDEy1TPkMOL5yaOAfW5YuobTSOKHB8zE3gE9Fi1WGXt4fBcGlNrwpRJ7 dz1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uq5Wf4lz1v6WRbSxNcbVUxXLNzKtVrcAVgmHbCzHMV4=; b=lEh3g9oYOO6rDQTu8HPOgfYTcXnm/c7my6z/V4J39Pgnf8jwgXE4Wga3b6lSVo2EJ4 l9F1ntfu/UqppA3P+6B4JNJtdAvUhIr9ciGIG7ISNHLP1YDlRMoxVEu3C5rypjNqvZkC NsctZJDp7SJpb9sUs8HPRSKy5Qx1vkvS3bMxODtNynQvmRcE6v/1st+NVbLv7HnJeZQ8 vbCnpRSBj2G7RYUYKdauDQsdfHyIDNEbi75/AvIpE8/1JW1aDw9TLxd3G0hiz9PQDmgm pNZHvX354TBHbTtmyOF1eRKu96z73Gb0FlXhn/a5lz3i8/UumA6YgawIK7TjM8hEK+kD anow== X-Gm-Message-State: AOAM531a2khqIC6/YB2as3f4Nmq/hDLHqothDE2hWz1LjIiWX3COzKmh KVnUzjwWfuTBHK99pQwdNKCRlqHGTMrgX3MCbt4= X-Google-Smtp-Source: ABdhPJyEv6h1WK9FBJrjcI18d9jdl6A32bwRX0D3R+mG7kRnrDbFiUJacngOO6+ZHm0mcqxm0P1xKs6BlrXJwBGMo1o= X-Received: by 2002:a92:5ed3:: with SMTP id f80mr616822ilg.33.1591866127496; Thu, 11 Jun 2020 02:02:07 -0700 (PDT) MIME-Version: 1.0 References: <1914c612-99ef-5c12-0409-37424c071220@allenjb.me.uk> In-Reply-To: <1914c612-99ef-5c12-0409-37424c071220@allenjb.me.uk> Date: Thu, 11 Jun 2020 11:01:41 +0200 Message-ID: To: AllenJB Cc: "G. P. B." , PHP internals , Kalle Sommer Nielsen Content-Type: multipart/alternative; boundary="0000000000000f38ea05a7cb376d" Subject: Re: [PHP-DEV][RFC] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: kjarli@gmail.com (Lynn) --0000000000000f38ea05a7cb376d Content-Type: text/plain; charset="UTF-8" On Thu, Jun 11, 2020 at 10:45 AM AllenJB wrote: > > This could be either as: > > a) Character count (at line 456, character 23) > > b) Quote either the remainder or the parsed section on the line (MySQL > quotes the remainder, for example) > > c) Quote the whole line with an indicator where the error occurred. I'm > not sure what the best way to do this would be - generically this could > be encapsulated in several values: The line content, token start > character count, token length / end character count > I really like the combination of A + C. After using php for 13 years the error messages are still a bit cryptic at times, especially in legacy code where you have a gazillion warnings in your IDE. Regards, Lynn --0000000000000f38ea05a7cb376d--