[php-src] Issue #8777: Assertion during enum compilation

From: Date: Tue, 14 Jun 2022 11:30:31 +0000
Subject: [php-src] Issue #8777: Assertion during enum compilation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241730@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8777 Author: dstogov ### Description The following code: ```php <?php enum y : string { case y = __FILE__; } ``` Resulted in this output: ``` Zend/zend_compile.c:9712: zend_compile_const_expr_magic_const: Assertion `ast->attr == T_CLASS_C' failed. Aborted (core dumped) ``` I'm not sure what this should produce. PHP-8.1 parser passes this code. ### PHP Version master ### Operating System *

« previous php.bugs (#241730) next »