[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.