[php-src] Issue #23111: Stack overflow in array?
[email protected] (djarfluka)
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <dfBsOTli0YfRPuaGjDQ6Dbd5hAcrxoDOyiBGeorzddU@main.internal.php.net> |
Issue: https://github.com/php/php-src/issues/23111
Author: djarfluka
### Description
The following code:
```php
<?php
$a=[]; for($i=0;$i<1000000;$i++){ $a=[$a]; }
array_walk_recursive($a, function($v){});
```
Resulted in this output:
```
USE_ZEND_ALLOC=0 php -d "opcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.jit=tracing" -d "opcache.jit_hot_loop=1" -d "opcache.jit_hot_func=1" poc.php
```
```
USE_ZEND_ALLOC=0 php poc.php
```
### PHP Version
```plain
8.6.0
```
### Operating System
ubuntu 22.04