mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01: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.
11 lines
213 B
PHP
11 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
|