php-src/Zend/tests/bug72335.phpt
2016-06-06 14:56:17 +03:00

19 lines
234 B
PHP

--TEST--
Misoptimize due to type narrowing
--FILE--
<?php
function test() {
$b = false;
$x = (1<<53)+1;
do {
$x = 1.0 * ($x - (1<<53));
} while ($b);
return $x;
}
var_dump(test());
?>
--EXPECT--
float(1)