mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

Bug that regularly sneaks in: ZEND_ACC_FINAL is set before calling zend_register_internal_class() and promptly gets ignored. Remove this footgun by preserving flags from the original CE.
10 lines
213 B
PHP
10 lines
213 B
PHP
--TEST--
|
|
Check that ReflectionAttribute is final
|
|
--FILE--
|
|
<?php
|
|
|
|
class T extends ReflectionAttribute {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class T may not inherit from final class (ReflectionAttribute) in %s on line %d
|