Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45743 invoked from network); 17 May 2011 16:31:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2011 16:31:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:58657] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/2A-27887-9E2A2DD4 for ; Tue, 17 May 2011 12:31:37 -0400 Received: by eyf5 with SMTP id 5so200281eyf.29 for ; Tue, 17 May 2011 09:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=AX9oGi6H19TxSesOnxwb8dZRZNOlrhr3KtB/M4QbWPI=; b=pjOwVZh9XOUT3AjJ1FQ928+yfKa6hoW9EmInApLlk9PTVJ3qgW7ik2/Pnai9honhXA 4et58fdt7RhvM4VasWeR67GHwj3ayT221hqvCYnXL/M/FZQzw2/w2PrBvbe8Nb5cJ6M2 n0WW5gPSjuN0yYTFs6LrncLmiRu0G2961kkH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=dap6hJ9LuwNGlcv1FnrIiDCxi/h/s6jXr8dhiFksQeBvI257f8xFNj32R3/GGSR0j3 J0RZE7GnpodpWyckMS8jGCvfEcgQhltLCC3P+sNXxUg8G6PEs84QbZZd5qDDM8STy6FG wBuL0ilgUzD+3sMXhZGGZBs2cABTNoIvic8gw= MIME-Version: 1.0 Received: by 10.14.17.70 with SMTP id i46mr256575eei.116.1305649894019; Tue, 17 May 2011 09:31:34 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.37.13 with HTTP; Tue, 17 May 2011 09:31:33 -0700 (PDT) In-Reply-To: <8757232E56758B42B2EE4F9D2CA019C901418DCB@US-EX2.zend.net> References: <8757232E56758B42B2EE4F9D2CA019C901418DCB@US-EX2.zend.net> Date: Tue, 17 May 2011 18:31:33 +0200 X-Google-Sender-Auth: i-d8H0HxjdFHZLY4ugGxlyZOLbg Message-ID: To: Andi Gutmans Cc: Felipe Pena , internals Content-Type: multipart/alternative; boundary=0016e65b52f822540104a37b4e3c Subject: Re: [PHP-DEV] Re: [RFC] Improved parser error message From: info@tyrael.hu (Ferenc Kovacs) --0016e65b52f822540104a37b4e3c Content-Type: text/plain; charset=UTF-8 On Tue, May 17, 2011 at 6:01 PM, Andi Gutmans wrote: > Hi Felipe, > > Read the archives. We discussed T_PAAMAYIM_NEKUDOTAYIM extensively and > agreed to keep it as a historical landmark. Let's not have the discussion > yet again within the same year. Google it just to see the # of mentions. > > Maybe you don't remember, but Felipe participated in that discussion, to be exact he proposed this exact feature there: http://www.mail-archive.com/internals@lists.php.net/msg48173.html after Felipe's mail, nobody objected about replacing the constants with meaningful names, as it was the original idea, but nobody found a clean way to implement it before. > What we could do as a compromise between history and improving many of the > parse error messages is: > Parse error: syntax error, unexpected :: (T_PAAMAYIM_NEKUDOTAYIM) in > Command line code on line 1 > > maybe it's a little bit redundant, but it can be a good transition. > Generally speaking I'm OK with the other changes but I don't know if any > extensions or scripts depend on them (probably not). > I suggest to give it another couple of days to see if anyone has any valid > concerns on breakage this could cause. > > as Felipe mentioned, his patch doesn't modify the token names(so the token_ functions aren't affected by this change), only the rendering of the error messages. Tyrael --0016e65b52f822540104a37b4e3c--