Skip to content

Commit

Permalink
Remove uses of apply_with_arguments API in reflection
Browse files Browse the repository at this point in the history
Instead of ZEND_HASH_FOREACH. As a side-effect, this fixes a latent
bug in _addmethod, where a zval was interpreted as a zval*.

Also apply some optimizations to getProperties() while at it: For
declared properties, use the HT key instead of unmangling the
property name. For dynamic properties check INDIRECT instead of
looking up prop info to determine if the property is dynamic.
  • Loading branch information
nikic committed Oct 3, 2018
1 parent 596fbf7 commit ac96a57
Showing 1 changed file with 85 additions and 124 deletions.

0 comments on commit ac96a57

Please sign in to comment.