diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-02 15:38:17 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-02 15:38:56 +0200 |
commit | 4fc4249d24a1a96f94c0721c839f3bb1998112e5 (patch) | |
tree | 681def6ab39a9e45e52c4f8ff589b25661004c0b /ext/reflection/php_reflection.c | |
parent | 6ca2e1db8e7a5f420ff52c5037851b159811069f (diff) | |
download | php-git-4fc4249d24a1a96f94c0721c839f3bb1998112e5.tar.gz |
Make ReflectionType an abstract class
This is never instantiated directly, only child classes are used.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index d31a99bd3f..5cc023831e 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -6790,6 +6790,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */ INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions); reflection_init_class_handlers(&_reflection_entry); reflection_type_ptr = zend_register_internal_class(&_reflection_entry); + reflection_type_ptr->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; INIT_CLASS_ENTRY(_reflection_entry, "ReflectionNamedType", reflection_named_type_functions); reflection_init_class_handlers(&_reflection_entry); |