Re: AW: [PHP-DEV] Attributes support proposal

From: Date: Mon, 18 Apr 2005 15:33:22 +0000
Subject: Re: AW: [PHP-DEV] Attributes support proposal
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-16002@lists.php.net to get a copy of this message
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

« previous php.internals (#16002) next »