[php-src] PR #21558: Fix GH-21557: jewishtojd returns 0 for years >= 6000.
| From: | devnexen | Date: | Sat, 28 Mar 2026 04:04:53 +0000 |
| Subject: | [php-src] PR #21558: Fix GH-21557: jewishtojd returns 0 for years >= 6000. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35408@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21558
Author: devnexen
The year >= 6000 upper bound introduced in GH-18849 was too restrictive as it is a valid year in
the Jewish calendar. The overflow protection in MoladOfMetonicCycle already handles large values,
the only guard needed is to prevent year + 1 from wrapping around INT_MAX.