Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110763 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41697 invoked from network); 28 Jun 2020 23:20:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Jun 2020 23:20:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E8475180088 for ; Sun, 28 Jun 2020 15:09:01 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 15:08:58 -0700 (PDT) Received: by mail-ot1-f43.google.com with SMTP id n24so11511399otr.13 for ; Sun, 28 Jun 2020 15:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=m8I571vnu86BijQ7NN14Zx588pbjbwHXQsP6uspU/Hs=; b=BbjWm29pKT93WFXtNOVEvlb455EV4Y1gsLWpupGaKtuluCRkQ+q5CovYzypoH0dg0e SP3QEdrhwCxj40gVj0nwbfz94jD8DNLYczvaD47hSyl7P8kkxZWFwRMrzylJ6YyAS2V5 WR8MUnwfW+8KmB8zqgo0XX7nImrs51EIEPkHVg7XzzQ3YK0jQY8RrvzY4V3Hbbsjy0S/ Uss9X5ZxpBdHWmj94fNPudGlIXsdUHRk5cxPiEw8kMYeH1+qBA6LLzxH6oD4jv/4uYPu FlB+85u4XsON0XaF6usyzyOaggF0CpW7rx1DeB1x7tqyp4RmWd5J2EITcBARpH2s05h+ qz6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=m8I571vnu86BijQ7NN14Zx588pbjbwHXQsP6uspU/Hs=; b=SQnvQ+NlO3qaXnbGnmOUH7ggADxiXZnCyTGCG8yfP4Z+aE+oqe0CYxNb3UZjhmbjBV /woex+ChCvaSWs4ybLqdO3DvZIqKT5FD30X45L0vMM2seNKL+lF4C5PaOC41kPFJdr4I bXYGp37Dbbr85NbZSno8hLCFBJUy/2/V129WnLm/SD/W+Stc1yUxVTjH3LVTaYmPlSwW tnKItzTtp2+rET9kc9Y6N0HwKbrOIoZs+xezSQdp39jnF8SSdbZjAF1WIDAps6v/XUQy 60eCC4a3tu94X5iL0v2l1pbiscZwhphcJwyE0JkksVd4AIzqmygI8gHLQlf23T6/ZtZs Z0sg== X-Gm-Message-State: AOAM533s8DZHI/iSR3mFkjDdA5bthEtE0Z9e7k9+ne78ihtNV04fFZ2H tglnl4A7dHoZmQMsI0DdNyQD/DCJUmJJ2IQoOfo= X-Google-Smtp-Source: ABdhPJwx6N+Hk5ZjL+uhyvrv/cUpe/OX3b8W6UfivnQ6aPNBPIIObcQKnTrqQuehssgcQxPmO6SU/PiHn/ZUSZWdupY= X-Received: by 2002:a9d:7dd3:: with SMTP id k19mr11316699otn.278.1593382137969; Sun, 28 Jun 2020 15:08:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6838:9603:0:0:0:0 with HTTP; Sun, 28 Jun 2020 15:08:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Jun 2020 00:08:57 +0200 Message-ID: To: Stanislav Malyshev Cc: Rowan Tommins , PHP Internals Content-Type: multipart/alternative; boundary="00000000000053411505a92c30e3" Subject: Re: [PHP-DEV] Improving output of syntax errors From: krakjoe@gmail.com (Joe Watkins) --00000000000053411505a92c30e3 Content-Type: text/plain; charset="UTF-8" Nicely done. No need for an RFC. Thanks. On Sunday, 28 June 2020, Stanislav Malyshev wrote: > Hi! > > > For more examples, see: > > https://rwec.co.uk/x/php-parse-errors/comparison.html > > > > The patch can be reviewed at: https://github.com/php/php-src/pull/5722 > > I think this is great, thanks for implementing it! > > > I am happy to post a small RFC if people think this requires a vote. > > > > Any other feedback is welcome. > > I personally don't think it requires a vote, as error messages are an > implementation detail and nobody should ever rely on it. Let's wait for > a bit though if somebody argues that it needs an RFC, but otherwise I > think we can merge it. > > > (As an aside, the other commonly requested change was to include column > > numbers; this appears to be feasible, but definitely more complex, and > > with potential performance trade-offs. I hope to re-visit this later.) > > Column numbers would be awesome too. > > -- > Stas Malyshev > smalyshev@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --00000000000053411505a92c30e3--