summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection_arginfo.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-10 11:05:26 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-10 11:05:26 +0100
commit42fbc76d9cee94241e56c82a8550ee6221d0f239 (patch)
tree8609d3a2538dd70893e5d8902bab91fbe8df97ff /ext/reflection/php_reflection_arginfo.h
parent87f127d8fa7b03e8f32962fc720da5df1a505fa5 (diff)
downloadphp-git-42fbc76d9cee94241e56c82a8550ee6221d0f239.tar.gz
Always invoke zpp in ReflectionProperty::getValue/isInitialized
Make sure we still perform a zpp check for the static case, and also always enforce that the parameter is ?object. Otherwise we violate the specified signature.
Diffstat (limited to 'ext/reflection/php_reflection_arginfo.h')
-rw-r--r--ext/reflection/php_reflection_arginfo.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h
index 68d61026b0..35ee713732 100644
--- a/ext/reflection/php_reflection_arginfo.h
+++ b/ext/reflection/php_reflection_arginfo.h
@@ -317,9 +317,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionProperty_setValue, 0, 0, 1)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionProperty_isInitialized, 0, 0, 0)
- ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
-ZEND_END_ARG_INFO()
+#define arginfo_class_ReflectionProperty_isInitialized arginfo_class_ReflectionProperty_getValue
#define arginfo_class_ReflectionProperty_isPublic arginfo_class_Reflector___toString