range_bug71132.phpt 236 B

12345678910
  1. --TEST--
  2. Bug #71132 (range function produces 2 segfaults with long integers)
  3. --FILE--
  4. <?php
  5. var_dump(count(range(PHP_INT_MIN + 513, PHP_INT_MIN)));
  6. var_dump(count(range(PHP_INT_MIN, PHP_INT_MIN + 513)));
  7. ?>
  8. --EXPECT--
  9. int(514)
  10. int(514)