[php-src] Issue #7757: Inherited final constant causes fatal error (if the same interface is inherited multiple times)

From: Date: Sat, 11 Dec 2021 11:07:34 +0000
Subject: [php-src] Issue #7757: Inherited final constant causes fatal error (if the same interface is inherited multiple times)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238331@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7757 Author: internalsystemerror ### Description The following code: ```php <?php interface EntityInterface { final public const TEST = 'this'; } interface KeyInterface extends EntityInterface { } interface StringableInterface extends EntityInterface { } class SomeTestClass implements KeyInterface, StringableInterface { } ``` Resulted in this output: ``` Fatal error: EntityInterface::TEST cannot override final constant EntityInterface::TEST in /in/UiiTf on line 13 Process exited with code 255. ``` But I expected this output instead: ``` No error ``` ### PHP Version PHP 8.1.0 ### Operating System Ubuntu 20.04

« previous php.bugs (#238331) next »