Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79447 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60728 invoked from network); 5 Dec 2014 17:19:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2014 17:19:12 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.174 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.213.174 mail-ig0-f174.google.com Received: from [209.85.213.174] ([209.85.213.174:53635] helo=mail-ig0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/1C-61462-F09E1845 for ; Fri, 05 Dec 2014 12:19:11 -0500 Received: by mail-ig0-f174.google.com with SMTP id hn15so1140436igb.7 for ; Fri, 05 Dec 2014 09:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+91pwoCYBa4JG2EBd2Nxx3JbWxEWSP0/vIbZlflTy7k=; b=scgA9laAL52GeLTjrwrMJs1yXNXsBR1/vH0rHFSK4MJrpQBemh390RsGawfmPqtsKO HJ+6rrxLi2RdoMK3MT4fpEm/OEtdaiK8GnCz1x12arPxdnDS4AtOOJdyzqWVH1PZXcms vm2mdWgszEQ/mLFm88n3fU52ZJGW1eaEIOE2Dnv2aA0hx6n9fqXjeVJfF6Ey+MuxtQdl 7LqcdDCsea7/eAiIIDCBA/fW7JCvttZJvTdLmarg/Ye5WjigNUWAdGJReuJCDBqOdHEb JP/9jeAdD5YH9tIrpxOGplKQS+meeWYaFsTfeOYnX6uUZdJi6eGjG35NIUur7PCaATyS Mg9w== X-Received: by 10.107.38.202 with SMTP id m193mr15982283iom.19.1417799947955; Fri, 05 Dec 2014 09:19:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Fri, 5 Dec 2014 09:18:46 -0800 (PST) In-Reply-To: References: Date: Fri, 5 Dec 2014 12:18:46 -0500 Message-ID: To: Levi Morrison Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1140751042b72905097b46db Subject: Re: [PHP-DEV] Zend language parser improvements From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a1140751042b72905097b46db Content-Type: text/plain; charset=UTF-8 Hi guys, I'd really appreciate some review around the before-mentioned PRs. I have added a new one to the list now: - https://github.com/php/php-src/pull/937 This PR addresses the parsing support for traits to have "extends" and "implements", as they are invalid. There's another one in the oven, which prevents extension developers to create classes that extends traits or interfaces. This is currently supported only for userland classes, but not for Zend API. Cheers, On Wed, Dec 3, 2014 at 8:39 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > > > On Wed, Dec 3, 2014 at 8:06 PM, Levi Morrison wrote: > >> The parser changes need to be careful reviewed; I don't have time at >> the moment to verify it but I think you unintentionally allowed some >> syntax's that shouldn't be valid because of the addition to >> `inner_statement`. >> > > Shouldn't. I broke down class_declaration_statement into 3 pieces: > class_declaration_statement, interface_declaration_statement and > trait_declaration_statement. > At the end, all I've done is adding the other 2 new rules back to where it > was consumed. > > >> >> Maybe I just looked too quickly. In any case, parser changes should >> always get several people reviewing them. >> > > Agreed. =) > > -- > Guilherme Blanco > MSN: guilhermeblanco@hotmail.com > GTalk: guilhermeblanco > Toronto - ON/Canada > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a1140751042b72905097b46db--