Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45966 invoked by uid 1010); 18 Apr 2005 15:37:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45946 invoked from network); 18 Apr 2005 15:37:15 -0000 Received: from unknown (HELO m.gmane.org) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 15:37:15 -0000 X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.4/2.6 Received: from ([80.91.229.2:53733] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 01/16-18700-924D3624 for ; Mon, 18 Apr 2005 11:37:13 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DNYE4-0003dW-Hd for internals@lists.php.net; Mon, 18 Apr 2005 17:31:52 +0200 Received: from pc19f799c.dip.t-dialin.net ([193.159.121.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Apr 2005 17:31:52 +0200 Received: from sb by pc19f799c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Apr 2005 17:31:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 18 Apr 2005 17:33:22 +0200 Lines: 18 Message-ID: References: <200504181319.56004.duncan@calligram.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pc19f799c.dip.t-dialin.net User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: X-Enigmail-Version: 0.91.0.0 Sender: news Subject: Re: AW: [PHP-DEV] Attributes support proposal From: sb@sebastian-bergmann.de (Sebastian Bergmann) Timm Friebe wrote: > Extend (or wrap) the reflection classes and add: > > MyClass::getAnnotations() > MyMethod::getAnnotations() > MyProperty::getAnnotations() > > In those, parse the sourcecode with ext/tokenizer and extract all > comments beginning with the string "#[", push them into a hashmap and > return it. I would like to see a PEAR (or even PECL) package that provides this functionality. I might even write it myself (given that I have a couple of long train rides coming up I will probably do this anyhow :-) -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69