com php-src: Make ReflectionType an abstract class: ext/reflection/php_reflection.c

From: Date: Mon, 02 Sep 2019 13:38:56 +0000
Subject: com php-src: Make ReflectionType an abstract class: ext/reflection/php_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108187@lists.php.net to get a copy of this message
Commit: 4fc4249d24a1a96f94c0721c839f3bb1998112e5 Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 2 Sep 2019 15:38:17 +0200 Parents: 6ca2e1db8e7a5f420ff52c5037851b159811069f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4fc4249d24a1a96f94c0721c839f3bb1998112e5 Log: Make ReflectionType an abstract class This is never instantiated directly, only child classes are used. Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index d31a99b..5cc0238 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);

« previous php.cvs (#108187) next »