[php-src] Issue #21264: [JIT] Community Symfony HttpFoundation failure

[email protected] (iluuu1994)
Newsgroups php.bugs
Message-ID <Qy7wXr1hcK98PfRSbytjEtwrdZjYL1ZxakMjym9Z4Ho@main.internal.php.net>
Issue: https://github.com/php/php-src/issues/21264
Author: iluuu1994

### Description

The following code:

```php
--TEST--
Missing reference unwrap for FE_FETCH_R in JIT
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit=function
--FILE--
<?php

class C {
    public array $array;

    public static function identity($x) {
        return $x;
    }

    public function test() {
        array_map(self::identity(...), $this->array);
    }
}

function test() {
    $c = new C;
    $element = 'qux';
    $c->array = [&$element, &$element];
    var_dump($c->test());
}

test();
test();

?>
--EXPECT--
```

Resulted in this output:
```
php: /home/ilutov/Developer/php-src/Zend/zend_execute.c:256: _get_zval_ptr_tmp: Assertion `zval_get_type(&(*(ret))) != 10' failed.

Termsig=6
```

But I expected this output instead:
```
```

`zend_jit_fe_fetch()` is likely missing the changes from GH-20628.

### PHP Version

```plain
master
```

### Operating System

_No response_
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.