Closed
Description
Description
Hello there.
The following code:
<?php new class { function a () { PARENT :: $ { 0} :: get () ; } };
Resulted in this output:
php: Zend/zend_ast.h:347: zend_string *zend_ast_get_str(zend_ast *): Assertion `zval_get_type(&(*(zv))) == 6' failed.
To reproduce:
> php-src/sapi/cli/php <path_to_code>
php: Zend/zend_ast.h:347: zend_string *zend_ast_get_str(zend_ast *): Assertion `zval_get_type(&(*(zv))) == 6' failed.
Additional reference: https://3v4l.org/ZPSua/rfc#vgit.master
PHP Version
Nightly and 8.4.2
Operating System
Ubuntu 22.04