1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/opcache/tests/range_inference_hang.phpt
T
Nikita Popov f8ec5a1d4c Fix range inference hang
We shouldn't switch from range to no range for ZEND_DIV and instead
explicitly return an overflowing range. Otherwise the range will
not actually get updated during widening, and we'll perform
essentially infinite narrowing.

Fixes oss-fuzz #40566.
2021-11-01 12:31:34 +01:00

17 lines
181 B
PHP

--TEST--
Range inference should not hang
--FILE--
<?php
function test() {
$a = 0;
while (true) {
$a = $a+!$a=$a/!!~$a;
}
}
?>
===DONE===
--EXPECT--
===DONE===