Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110764 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1100 invoked from network); 29 Jun 2020 07:38:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2020 07:38:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 41F711804E6 for ; Sun, 28 Jun 2020 23:27:37 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,WEIRD_QUOTING 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-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 23:27:36 -0700 (PDT) Received: by mail-ej1-f50.google.com with SMTP id a1so15333886ejg.12 for ; Sun, 28 Jun 2020 23:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Qs/NUu+IRp215y6Nt9ycNBlg/xA3Bgy5ARGJuM25zzI=; b=MVWhzn3BtXR4RNxgiQojIMz4/fhHued/OfrkFnR/wzSXW39uYxLt1Q1/E2sQJYWkSb 4X1yd5rwbOGxoAjvRNjgpbMt/e47GkiOgUr6gLn1Q5pOcqSH6z8NMiQcj0a0q9cDNAZF SLLHmPeFBZ+kGidAPcL0dfDgjaqrlkC8ilx0lONF7cj9v/oHUjzR9eKVvyvRb5yud0pF Iebe/9KMlNrASCEhddaGz8aWNGJ6BMzn9dbowapxpuy7qGAnOKyprROcX7vegfgr3pt9 YpeN4ZTNePKzzuIS75Und4gGjb4hX3xAaoemisxpXIbgpWpXvNaEFMRQnyMmUf40Kmoa 2zFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Qs/NUu+IRp215y6Nt9ycNBlg/xA3Bgy5ARGJuM25zzI=; b=AiOOZR5Ynus1IGYJtQv1oPEOuyhyCBV88G8h5f5bEQmchJi90Za1pel/TsrObhri/0 QGKw3Lm5L9suxHeltN6Jd98EhCtiXqeqo1sBZWZkQWaEutq3o4k0U3n7VqoRXYx9+1Hx 2n3vxRvpYT6Yg4oM+S70E/MGnSrwa77giyXGarhaKoFbQ6FQVr8gn+WnqA6Jot2AkRlC dAYxdivzuRDEnSw+UgxhHn/e6otWGttkAtsqeTEgotVXqy/CHLM39/F6ZthVfWoHyiIg 5pvsBl0aVdpPlNCccHlqgG/WmB5C1u1m/ip6Y5vbDqv1R/b9OWyGnbf4+cv0rUQ621ND bSXA== X-Gm-Message-State: AOAM530sWVjmS4aZZzvqrPsTn9diJmGalS9PzjLy0WyvplXdgo+sW/94 445sRPrdxOa/DbD8+RKQcN4= X-Google-Smtp-Source: ABdhPJyhMlDdCO4lxKJmM4XE2wHcCAMhN9pzOWPuVBz9ulj0ioBs/NTHP2zW1f/THKIwrp5epjTUtQ== X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr12369328ejc.25.1593412054935; Sun, 28 Jun 2020 23:27:34 -0700 (PDT) Received: from claude.fritz.box ([185.129.54.56]) by smtp.gmail.com with ESMTPSA id q7sm18764121eja.69.2020.06.28.23.27.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2020 23:27:33 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) In-Reply-To: Date: Mon, 29 Jun 2020 08:27:33 +0200 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Rowan Tommins X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: Re: [PHP-DEV] Improving output of syntax errors From: claude.pache@gmail.com (Claude Pache) > As a special-case, quoted strings show the string's *content* in = double quotes, e.g. 'unexpected quoted string "foo" ...' rather than = 'unexpected quoted string ""foo"" ...' or 'unexpected quoted string = "'foo'" ...'. For me, in this case, you have dropped the wrong pair of quotes. That = is, I prefer to see the quotes used in the source text (=E2=80=9Cunexpecte= d string 'foo' ...=E2=80=9D or =E2=80=9Cunexpected string "foo" ...=E2=80=9D= ), over the quotes that make error messages consistent with other error = messages. This is because I like to have hints that help me to visually = identify the offending string in the source text when it is of length 0 = or 1, but on other hand I don=E2=80=99t care about consistency across = error messages.=20 =E2=80=94Claude