1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Files
2024-01-15 09:39:13 +01:00

31 lines
488 B
PHP

--TEST--
Bug #80959: infinite loop in building cfg during JIT compilation
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit=tracing
--FILE--
<?php
function test($a, $b) {
echo "Start\n";
$i = $j = 0;
do {
$i++;
try {
continue;
} catch (Exception $e) {
}
do {
$j++;
} while ($j < $b);
} while ($i < $a);
echo "Done $i $j\n";
}
test(5, 6);
?>
--EXPECT--
Start
Done 5 0