[php-src] Issue #16054: Segmentation fault in Zend/zend_hash.c
| From: | YuanchengJiang | Date: | Wed, 25 Sep 2024 14:46:23 +0000 |
| Subject: | [php-src] Issue #16054: Segmentation fault in Zend/zend_hash.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247902@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/16054
Author: YuanchengJiang
### Description
The following code:
```php
<?php
$multi_array = array ('zero', array (1, 2, 3), 'two');
next($multi_array);
end($multi_array);
$multi_array[] = &$multi_array;
$fusion = $multi_array;
$v1=$definedVars[array_rand($definedVars = get_defined_vars())];
$ary = array(
0 => array(
(binary) "binary",
"abc2",
1,
),
(binary) "binary" => array(
2,
"b",
3 => array(
4,
"c",
),
"4abc" => array(
4,
"c",
),
),
);
$it = new RecursiveTreeIterator(new RecursiveArrayIterator($fusion), 0);
foreach($it as $k => $v) {
}
?>
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04