Reflection API
| From: | George Schlossnagle | Date: | Sun, 29 Jun 2003 19:18:34 +0000 |
| Subject: | Reflection API | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-2977@lists.php.net to get a copy of this message | ||
Here is a first implementation of the reflection api, for functions (class PHP_Function in you diagram)
http://www.schlossnagle.org/~george/php/reflection.diff
http://www.schlossnagle.org/~george/php/zend_reflection_api.c
http://www.schlossnagle.org/~george/php/zend_reflection_api.h
Comments? Thoughts?
George
On Wednesday, June 18, 2003, at 12:53 PM, Sebastian Bergmann wrote:
Sebastian Bergmann wrote:-- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0http://www.sebastian-bergmann.de/stuff/reflection.pngI refactored it a bit:http://www.sebastian-bergmann.de/stuff/reflection-update.pngIMHO it is essential that PHP_Field and PHP_Method implement a common interface (like their counterparts from java.lang.reflect do) to ease iterating through a class's members, for instance. -- Sebastian Bergmannhttp://sebastian-bergmann.de/ http://phpOpenTracker.de/http://www.professionelle-softwareentwicklung-mit-php5.de/-- PHP 5 Development Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- George Schlossnagle