diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-21 11:53:00 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-21 11:53:00 +0200 |
commit | b3ea6ce720b3811e0c98ba4bdcf9107553d8967a (patch) | |
tree | 9696c206609573f70652e938fa5ff550273d1288 /ext/reflection/php_reflection.c | |
parent | 3a9036ac54c016a39a101057f29da30cc0c4c475 (diff) | |
download | php-git-b3ea6ce720b3811e0c98ba4bdcf9107553d8967a.tar.gz |
Make ReflectionGenerator final
This class is not safe against malicious extension / instantiation.
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 c751da1281..15237b3511 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -6506,6 +6506,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */ INIT_CLASS_ENTRY(_reflection_entry, "ReflectionGenerator", class_ReflectionGenerator_methods); reflection_init_class_handlers(&_reflection_entry); reflection_generator_ptr = zend_register_internal_class(&_reflection_entry); + reflection_generator_ptr->ce_flags |= ZEND_ACC_FINAL; INIT_CLASS_ENTRY(_reflection_entry, "ReflectionParameter", class_ReflectionParameter_methods); reflection_init_class_handlers(&_reflection_entry); |