[php-src] Issue #15672: Segmentation fault in Zend/zend_execute_API.c
| From: | YuanchengJiang | Date: | Sat, 31 Aug 2024 06:37:20 +0000 |
| Subject: | [php-src] Issue #15672: Segmentation fault in Zend/zend_execute_API.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247649@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15672
Author: YuanchengJiang
### Description
The following code:
```php
<?php
$iter1 = new ArrayIterator(array(1,2,3));
$iter2 = new ArrayIterator(array(1,2));
$iter3 = new ArrayIterator(array(new stdClass(),"string",3));
$m = new MultipleIterator();
$m->setFlags(MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_ASSOC);
$m->attachIterator($iter1, "1");
$m->attachIterator($iter2, "2");
$m->attachIterator($m, 3);
foreach($m as $key => $value) {
var_dump($key, $value);
}
?>
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04