Re: [Zend Engine 2] More work on reflection API
| From: | George Schlossnagle | Date: | Tue, 01 Jul 2003 21:36:52 +0000 |
| Subject: | Re: [Zend Engine 2] More work on reflection API | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3123@lists.php.net to get a copy of this message | ||
Csn you make your diff of current cvs? I committed a good bit of your previous patch.
I don't know if i dig the way you implemented reflection_method. I have some partially complete work that handles this in a manner more consistent with the rest of the code.
George
On Tuesday, July 1, 2003, at 05:27 PM, Timm Friebe wrote:
On Tue, 2003-07-01 at 20:27, Timm Friebe wrote:Cool.Hello, I went ahead and spent some time on the new reflection API. A patch (778 lines:)) and a demo script are attached.More to come: --------------------------------------------------------------------- - Added some necessary efree()'s before an exception is thrown (as ZEND_DO_THROW returns from the function immediately. - Added Reflection_Method class TBI: getDeclaringClass()
- Added Reflection_Class::getModifiers which returns a long consisting of the bitmask of modifiers which are registered as constants with the following names: STATIC ABSTRACT FINAL INTERFACE ABSTRACT_CLASS FINAL_CLASS PUBLIC PROTECTED PRIVATE PPP_MASK CHANGED IMPLICIT_PUBLIC TBDiscussed: Would something likeor array('public' => 1, 'static' => 1) The bitmask is pretty cryptic. Besides STATIC is a keyword. -- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0$modifiers= array('public', 'static')be cooler? Currently, one would be checking with$modifiers & STATICetc.