[php-src] Issue #15914: Assertion failure in Zend/zend_execute.c

From: Date: Mon, 16 Sep 2024 11:10:29 +0000
Subject: [php-src] Issue #15914: Assertion failure in Zend/zend_execute.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247799@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15914 Author: YuanchengJiang ### Description The following code: ```php <?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

« previous php.bugs (#247799) next »