Annotation of embedaddon/php/ext/calendar/tests/jdtojewish64.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #64895: Integer overflow in SndToJewish
! 3: --SKIPIF--
! 4: <?php
! 5: include 'skipif.inc';
! 6: if (PHP_INT_SIZE == 4) {
! 7: die("skip this test is for 64bit platform only");
! 8: }
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: $a = array(38245310, 324542846, 324542847, 9223372036854743639);
! 13:
! 14: foreach ($a as $x) var_dump(jdtojewish($x));
! 15: --EXPECTF--
! 16: string(11) "2/22/103759"
! 17: string(12) "12/13/887605"
! 18: string(5) "0/0/0"
! 19: string(5) "0/0/0"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>