1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext/opcache/tests/jit/bug80959.phpt
T
Dmitry Stogov 9108ac678e Fixed test
2021-07-21 14:51:36 +03:00

32 lines
515 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_buffer_size=1M
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