Re: Reflection API
| From: | Andrei Zmievski | Date: | Mon, 30 Jun 2003 15:55:22 +0000 |
| Subject: | Re: Reflection API | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3048@lists.php.net to get a copy of this message | ||
On Mon, 30 Jun 2003, George Schlossnagle wrote:
> On Monday, June 30, 2003, at 12:04 PM, Andi Gutmans wrote:
>
> >I must be thick. I don't quite understand how the source relates to
> >what is described in the .png. Take for example the following from the
> >api.c file:
>
> I talked this over with Marcus. The FE/FALIAS pairs are designed to
> avoid namespace conflicts with the other (not yet existent) reflection
> classes. I better solution will be to write a new macro that allows
> ZEND_FUNCTION(php_function_getstartline) to be registered as a class
> method directly as 'getstartline). I'll modify my patch shortly. If
> something like that exists already, a pointer to it would be swell.
#define ZEND_METHOD(class, name) ZEND_NAMED_FUNCTION(ZEND_FN(class##_##name))
It's already in zend_API.h
-Andrei
* Anything will fit if you push hard enough. *