]> granicus.if.org Git - php/commit
Remove uses of apply_with_arguments API in reflection
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 2 Oct 2018 21:28:38 +0000 (23:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 3 Oct 2018 08:37:42 +0000 (10:37 +0200)
commitac96a57818f02b996538c1562a965c9e5b85c712
tree7be8daf1d78d4c1933a4d9c28009c6ecc14a08ea
parent596fbf7393777cb14006813111875db5b0a21d3b
Remove uses of apply_with_arguments API in reflection

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.
ext/reflection/php_reflection.c