jdtojewish64.phpt 409 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #64895: Integer overflow in SndToJewish
  3. --EXTENSIONS--
  4. calendar
  5. --SKIPIF--
  6. <?php
  7. if (PHP_INT_SIZE == 4) {
  8. die("skip this test is for 64bit platform only");
  9. }
  10. ?>
  11. --FILE--
  12. <?php
  13. $a = array(38245310, 324542846, 324542847, 9223372036854743639);
  14. foreach ($a as $x) var_dump(jdtojewish($x));
  15. ?>
  16. --EXPECT--
  17. string(11) "2/22/103759"
  18. string(12) "12/13/887605"
  19. string(5) "0/0/0"
  20. string(5) "0/0/0"