Skip to content

Assertion failure in Zend/zend_execute.c #15914

Open
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
class TestHooks
{
public function __construct(string $first, public string $last) {
}
}
$o = new TestHooks('first', 'last');
$a = new ArrayObject($o);
foreach ($a as &$c) {
}

Resulted in this output:

/php-src/Zend/zend_execute.c:3955: zend_ref_del_type_source: Assertion `source_list->ptr == prop' failed.
Aborted (core dumped)

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions