Description
The following code:
--TEST--
Missing reference unwrap for FE_FETCH_R in JIT
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit=function
--FILE--
<?phpclass C {
public array $array;
publicstaticfunctionidentity($x) {
return$x;
}
publicfunctiontest() {
array_map(self::identity(...), $this->array);
}
}
functiontest() {
$c = newC;
$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.
For context: https://github.com/php/php-src/actions/runs/22207820708/job/64235745034
PHP Version
Operating System
No response
Description
The following code:
Resulted in this output:
But I expected this output instead:
zend_jit_fe_fetch()is likely missing the changes from GH-20628.For context: https://github.com/php/php-src/actions/runs/22207820708/job/64235745034
PHP Version
Operating System
No response