[php-src] Issue #10486: Assertion error when using invalid values as class constant name

From: Date: Thu, 02 Feb 2023 14:52:03 +0000
Subject: [php-src] Issue #10486: Assertion error when using invalid values as class constant name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243619@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10486 Author: iluuu1994 ### Description The following code: ```php y::{5}::y; ``` ```php const y = y::{y}; ``` Resulted in this output: ``` Termsig=6 ``` But I expected this output instead: ``` Fatal error: Uncaught Error: Class "y" not found ``` ``` Fatal error: Uncaught Error: Undefined constant "y" ``` ### PHP Version master ### Operating System _No response_

« previous php.bugs (#243619) next »