bug62097.phpt 433 B

123456789101112131415161718
  1. --TEST--
  2. Bug #62097: fix for bug #54547 is wrong for 32-bit machines
  3. --SKIPIF--
  4. <?php
  5. if (PHP_INT_MAX !== 2147483647)
  6. die('skip for system with 32-bit wide longs only');
  7. --FILE--
  8. <?php
  9. var_dump("02147483647" == "2147483647",
  10. "02147483648" == "2147483648",
  11. "09007199254740991" == "9007199254740991",
  12. "09007199254740992" == "9007199254740992");
  13. ?>
  14. --EXPECT--
  15. bool(true)
  16. bool(true)
  17. bool(true)
  18. bool(false)