Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97039 invoked from network); 9 May 2011 18:32:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2011 18:32:13 -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.42 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.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:52819] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/20-20726-C2338CD4 for ; Mon, 09 May 2011 14:32:13 -0400 Received: by ewy2 with SMTP id 2so1633880ewy.29 for ; Mon, 09 May 2011 11:32:10 -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=qh5ycIzFDeKD/0cNSdGIpt1Fp3c4k/yX37aejHxlZBw=; b=LCeohtG2GwkSRHLSDGjnwe+Mx5h/M7CEBjEZhdyLBk1zAgE68YYmp6s2hkJjZxTPMW ptMgswsBq1Y67U49LMjPX5X8j3zDHIzQJEKwsUkDK+va63RPcZOM4pqQli7mq0CZ6Y+6 yYnB+Y7AsoA9+1HzOkDw37ayKOSqJEZ4FX5V8= 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=P9RtqBADvvyhvrHQCPeV6RlDKQP3bNUsCew611G9eGDtoJe04hcn+5DSPpxSOHdCSc aDpRZRq/dcUBGhymUo8GnSJcCTNiuMyPcPe5VroMpqwt4NX2GdrfYwwLGN7SV/4X107U t1A8fXtETdNDHLTOJF5AZeHc45O3XPclQE0wE= MIME-Version: 1.0 Received: by 10.14.37.75 with SMTP id x51mr3274148eea.71.1304965929930; Mon, 09 May 2011 11:32:09 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.127.79 with HTTP; Mon, 9 May 2011 11:32:09 -0700 (PDT) In-Reply-To: References: <20110313213356.GC4446@crousti> <20110313215222.GE4446@crousti> Date: Mon, 9 May 2011 20:32:09 +0200 X-Google-Sender-Auth: -Gdy7VMDk2kecwqYl38J0u5VOgk Message-ID: To: "guilhermeblanco@gmail.com" Cc: Pierre Joye , Marcelo Gornstein , Etienne Kneuss , internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba615412b2924604a2dc0e0d Subject: Re: [PHP-DEV] native php annotations From: info@tyrael.hu (Ferenc Kovacs) --90e6ba615412b2924604a2dc0e0d Content-Type: text/plain; charset=UTF-8 On Mon, Mar 14, 2011 at 7:02 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > Hi all, > > I promise myself to not revamp this discussion again, but it wasn't me > this time! > > @Etienne: That RFC is outdated. > Since the last feedback form internals list, a lot of changes have > been made to that RFC. Maybe I should update it ASAP so you can > clearly understand what have changed to be compatible with current PHP > syntax. > > If you are interested, Pierrick moved all the recent developments to a > github repository, which can be reached here: > https://github.com/adoy/PHP-Annotations > > Take a look at some tests: > > https://github.com/adoy/PHP-Annotations/blob/master/tests/annotations/parser_021.phpt > > https://github.com/adoy/PHP-Annotations/blob/master/tests/annotations/ReflectionParameter_getAnnotations_003.phpt > > https://github.com/adoy/PHP-Annotations/blob/master/tests/annotations/ReflectionClass_getAnnotations_004.phpt > > Also, there's even an alternative patch that support positioned > parameters instead of named ones. > We just have to reach an agreement with what PHP core want. > > @Marcelo: While your proposal looks very good, it lacks of the support > to nested Annotation. > Consider how userland/framework would use your idea. For example, > Symfony2 supports validation of data inside classes inspired on > JSR-303 (Bean Validation). > > Symfony2 takes an advantage of a library Doctrine group (which I'm a > core member) created by parsing docblocks. When we created this > parser, I created this RFC with the good intention that PHP could > benefit of this known feature to enhance current userland > developments. > The first thing you need is your application still running ok with and > without comments. This already breaks all suggestions of creating a > PECL extension of docblock parser. > > > > I'd like to see what people think about it and make something "IN" on > next PHP major version. > > > now that the wiki is back and this was brought up in the 5.4 release planning, I think it would be a good idea to: - update the RFC to be in sync with the implementation - review the rfc and the patch itself - make the necessary modifications if necessary - decide whether we want this in 5.4 or not. Tyrael --90e6ba615412b2924604a2dc0e0d--