From: Christoph M. Becker Date: Thu, 28 Jul 2016 17:59:14 +0000 (+0200) Subject: Implement FR #65462: Please add tests for gregorian and jewish overflow fixes X-Git-Tag: php-7.0.10RC1~17^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c458c9b025f6f654497f5e3d2ee53b4d1561454;p=php Implement FR #65462: Please add tests for gregorian and jewish overflow fixes --- diff --git a/ext/calendar/tests/jdtogregorian_overflow.phpt b/ext/calendar/tests/jdtogregorian_overflow.phpt new file mode 100644 index 0000000000..28f5298e19 --- /dev/null +++ b/ext/calendar/tests/jdtogregorian_overflow.phpt @@ -0,0 +1,28 @@ +--TEST-- +jdtogregorian(): test overflow +--CREDITS-- +neweracracker@gmail.com +--SKIPIF-- + +--FILE-- + +--EXPECT-- +536838860:10/11/1465102 +536838861:10/12/1465102 +536838862:10/13/1465102 +536838863:10/14/1465102 +536838864:10/15/1465102 +536838865:10/16/1465102 +536838866:10/17/1465102 +536838867:0/0/0 +536838868:0/0/0 +536838869:0/0/0 +DONE diff --git a/ext/calendar/tests/jdtojewish_overflow.phpt b/ext/calendar/tests/jdtojewish_overflow.phpt new file mode 100644 index 0000000000..1d1c2eefb9 --- /dev/null +++ b/ext/calendar/tests/jdtojewish_overflow.phpt @@ -0,0 +1,27 @@ +--TEST-- +jdtojewish(): test overflow +--CREDITS-- +neweracracker@gmail.com +--SKIPIF-- + +--FILE-- + +--EXPECT-- +324542840:12/7/887605 +324542841:12/8/887605 +324542842:12/9/887605 +324542843:12/10/887605 +324542844:12/11/887605 +324542845:12/12/887605 +324542846:12/13/887605 +324542847:0/0/0 +324542848:0/0/0 +324542849:0/0/0 +DONE