Assertion failure in Zend/zend_execute.c
Open
Nobody has claimed this yet.
Bug
Category: Engine
Status: Verified
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the PHP reproducer from the issue on Ubuntu 22.04 and inspect the assertion at Zend/zend_execute.c:3955, especially the zend_ref_del_type_source failure. Done means the example no longer aborts with the assertion; the issue does not name a test file or a more specific expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100