Fix bug #81474: Make ReflectionAttribute non-final

This backports GH-7520 to PHP 8.0.

Closes GH-7545.
This commit is contained in:
sasezaki 2021-10-02 17:50:08 +09:00 committed by Nikita Popov
parent 57a32c6a69
commit e286313fa7
5 changed files with 5 additions and 13 deletions

View file

@ -6618,7 +6618,6 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionAttribute", class_ReflectionAttribute_methods);
reflection_init_class_handlers(&_reflection_entry);
_reflection_entry.ce_flags |= ZEND_ACC_FINAL;
reflection_attribute_ptr = zend_register_internal_class(&_reflection_entry);
REGISTER_REFLECTION_CLASS_CONST_LONG(attribute, "IS_INSTANCEOF", REFLECTION_ATTRIBUTE_IS_INSTANCEOF);