bug72335.phpt 234 B

123456789101112131415161718
  1. --TEST--
  2. Misoptimize due to type narrowing
  3. --FILE--
  4. <?php
  5. function test() {
  6. $b = false;
  7. $x = (1<<53)+1;
  8. do {
  9. $x = 1.0 * ($x - (1<<53));
  10. } while ($b);
  11. return $x;
  12. }
  13. var_dump(test());
  14. ?>
  15. --EXPECT--
  16. float(1)