[php-src] PR #11862: Allow easter_date to process years after 2037 on 64bit systems
| From: | Arne1303 | Date: | Wed, 02 Aug 2023 18:23:25 +0000 |
| Subject: | [php-src] PR #11862: Allow easter_date to process years after 2037 on 64bit systems | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23252@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11862
Author: Arne1303
Until now, easter_date always threw an error if executed with a year after 2037. This was done to
prevent an integer overflow with Unix timestamps in the years after 2038 from appearing. ([Y2K38
bug](https://en.wikipedia.org/wiki/Year_2038_problem))
Since the overflow does not happen with signed 64-bit integers, I added a check to allow easter_date
to run on 64bit systems with years after 2037.