Skip to content

Fix GH-21557: jewishtojd returns 0 for years >= 6000.#21558

Closed
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:gh21557
Closed

Fix GH-21557: jewishtojd returns 0 for years >= 6000.#21558
devnexen wants to merge 1 commit intophp:PHP-8.4from
devnexen:gh21557

Conversation

@devnexen
Copy link
Copy Markdown
Member

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.

The year >= 6000 upper bound introduced in phpGH-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.
@devnexen devnexen linked an issue Mar 28, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This falls into the "Allowing recent regression fixes during security support", so should likely target 8.3.

https://wiki.php.net/rfc/release_cycle_update#allowing_recent_regression_fixes_during_security_support

Allowing recent regression fixes during security support

This proposal is to allow fixes of regressions caused by other fixes merged to the supported branch in the last 12 months. The reasoning behind this is that more complex fixes will be possible later in the cycle. These fixes might potentially introduce regressions. If such a regression is found within a year, then it will be possible to apply a fix for that even if the branch allows only security fixes.

@devnexen devnexen closed this in 7647b47 Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with jewishtojd For Years >= 6000 for Php8.3+

2 participants