[php-src] Issue #23111: Stack overflow in array?
| From: | djarfluka | Date: | Sat, 08 Aug 2026 00:45:08 +0000 |
| Subject: | [php-src] Issue #23111: Stack overflow in array? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252561@lists.php.net to get a copy of this message | ||
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