]> granicus.if.org Git - php/commit
Fix #80185: jdtounix() fails after 2037
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 7 Oct 2020 08:38:30 +0000 (10:38 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 7 Oct 2020 11:23:50 +0000 (13:23 +0200)
commite857dfa7cc9d28174e2328bd3ef74d9c436afda9
treeba823159112cdc8bd268fb7f11a4b22111f2a029
parent69ba81d183130b06d52ea1cd4574864ffae5dd84
Fix #80185: jdtounix() fails after 2037

There is no such thing as the "end of the unix epoch", and if it was,
it would certainly not be 2037-10-11T02:00:00.  There is, however,
potential integer overflow which we need to avoid.

Closes GH-6288.
NEWS
ext/calendar/cal_unix.c
ext/calendar/tests/bug80185.phpt [new file with mode: 0644]
ext/calendar/tests/bug80185_32bit.phpt [new file with mode: 0644]