Skip to content

Numeric parent hook call fails with assertion #17234

Closed
@yype

Description

@yype

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions