summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-05-08 17:06:34 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-05-08 17:06:34 +0200
commitbe31a9468db01e78db64a52e66ea34e3f18c8dc8 (patch)
tree6ad6d6a0de6e1f2ecf17b6734c83f896d88db9f9 /ext/reflection/php_reflection.c
parent370f4e4c6f26e5fa76dd0e2cd2bd0adcf9ca5ed4 (diff)
parente4e6820d103d82bece101597cdbca06f173cd64b (diff)
downloadphp-git-be31a9468db01e78db64a52e66ea34e3f18c8dc8.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 87561eeae5..539e764555 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3665,13 +3665,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;