Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79469 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46191 invoked from network); 8 Dec 2014 10:45:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Dec 2014 10:45:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.177 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.177 mail-vc0-f177.google.com Received: from [209.85.220.177] ([209.85.220.177:32976] helo=mail-vc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/00-45136-F2185845 for ; Mon, 08 Dec 2014 05:45:04 -0500 Received: by mail-vc0-f177.google.com with SMTP id ij19so2014793vcb.36 for ; Mon, 08 Dec 2014 02:45:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lqP8ayB9CsjDAwRuu3JSel1eTfrUB8DQ/lAjznF2L5k=; b=HK10FfG3ta5K02MWz1n2EZ2y0TWWP5A18FT3rwAiBtPlPsXUN7ObiaSJWenfVLIns9 NJUd5X905tp604FgGQNuk348tsWTi7R+tn6nmuzCcN9Fgliy0ql9gHc+UV9g0aJcsfnb HEs4rIwQjmglltMVhJ/MtY0KEgcp5/71OLeRrLzONu9RnyCwTCNjnpEPGkiexJdH7iMG oOELWpUqlkXAiJDRrdrS0nGng9MEDUHtccVCrZtlTxAp7Kx7HkJN7ZVH5N42k5rVvbvI BMBxpayR7+3Qz1GC6ruTUYBRIRzCuaWSTvau4L3HHG5LwSYJPM4ISYhY9QI75lXcn/rl O6OQ== X-Gm-Message-State: ALoCoQl6MTBk/44LyZk+siYfDdCJ/xNzKq47GjUa1Rjk5o+6uFDRjsnPUUwuDCvfPVfHJho2x0D5B0/uItGEFOm6xpKYxPe6wpAcpuBNVERtpNhLlUq8GNBnTuK84huXsMIG9xRF8ufnhYotrk6pU8We52wxj9K3IQ== MIME-Version: 1.0 X-Received: by 10.220.97.68 with SMTP id k4mr24593079vcn.80.1418035500974; Mon, 08 Dec 2014 02:45:00 -0800 (PST) Received: by 10.52.176.231 with HTTP; Mon, 8 Dec 2014 02:45:00 -0800 (PST) In-Reply-To: References: Date: Mon, 8 Dec 2014 14:45:00 +0400 Message-ID: To: "guilhermeblanco@gmail.com" , Nikita Popov Cc: Levi Morrison , PHP internals Content-Type: multipart/alternative; boundary=001a11c2b5a8509d770509b21e58 Subject: Re: [PHP-DEV] Zend language parser improvements From: dmitry@zend.com (Dmitry Stogov) --001a11c2b5a8509d770509b21e58 Content-Type: text/plain; charset=UTF-8 I don't see technical problems with the patch. However, I also don't see any significant benefits. From the user perspective it'll just change error messages and prevent "final final class" declarations. Nikita, what do you think? Thanks. Dmitry. On Fri, Dec 5, 2014 at 8:18 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > 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 > --001a11c2b5a8509d770509b21e58--