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:
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()

Cool.



- 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 like
    $modifiers= array('public', 'static')
  be cooler? Currently, one would be checking with
    $modifiers & STATIC
  etc.

or


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


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to