diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-08 17:04:28 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-08 17:06:00 +0200 |
commit | e4e6820d103d82bece101597cdbca06f173cd64b (patch) | |
tree | f7d1cfa8d88f33d81280a259a6c4432f1798308d /ext/reflection/php_reflection.c | |
parent | 90e285f6fda679c18259e459c8585ebf284805b0 (diff) | |
download | php-git-e4e6820d103d82bece101597cdbca06f173cd64b.tar.gz |
Use fast zpp for ReflectionClass constructor
At this point zpp overhead makes up a significant part of this
function.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7b7afa9547..31c9fcc51b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3669,13 +3669,13 @@ static void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_ob zend_class_entry *ce; if (is_object) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "o", &argument) == FAILURE) { - return; - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_OBJECT(argument) + ZEND_PARSE_PARAMETERS_END(); } else { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &argument) == FAILURE) { - return; - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_ZVAL(argument) + ZEND_PARSE_PARAMETERS_END(); } object = ZEND_THIS; |