1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
archived-php-src/ext/opcache/tests/opt/inference_024.phpt
Dmitry Stogov 1e55c97601 Fixed type inference
Fixes oss-fuzz #64577, #64579, #64589
2023-12-01 17:08:16 +03:00

24 lines
380 B
PHP

--TEST--
Type inference 024: FETCH_DIM_W
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function foo() {
for ($cnt = 0; $cnt < 6; $cnt++) {
$b = new SplFixedArray(1);
$b[0] = $a;
$g = &$b[0];
$b = new SplFixedArray(1);
$b[0] = $b;
$g = &$b[0];
}
}
@foo();
?>
DONE
--EXPECT--
DONE