Closed
Description
Description
The following code:
<?php
for ($i = 0; $i < 2; ++$i) { //This must run >=2 (increasing the number of elements in the array *2 will not do)
foreach (array_fill(0, 389, 'x') as &$params) { //Will not trigger <389
$x[] = new foo;
}
}
Resulted in this output:
/php-src/ext/opcache/jit/ir/ir_ra.c:1139: ir_add_osr_entry_loads: Assertion `0' failed.
Aborted (core dumped)
To reproduce:
-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable_cli=1" -d "opcache.jit=1002"
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04