Patch for #54254
| From: | Eitan Mosenkis | Date: | Tue, 10 Jan 2012 20:29:34 +0000 |
| Subject: | Patch for #54254 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-57334@lists.php.net to get a copy of this message | ||
This is a patch to fix the main issue in bug #54254,
cal_from_jd(CAL_JEWISH) returns month=6 for Adar when there is only
one Adar, (it should return 7, since if there is only one Adar it's
AdarII). This will clear up an issue where cal_from_jd() returns a
month that cal_days_in_month() reports to have 0 days due to an
inconsistency in how dates are converted to and from the Jewish
calendar. This patch should create the correct behavior.
I hope this can be applied and put into place soon, as this bug causes
malfunctions that have to be worked around.
Thanks,
Eitan
https://bugs.php.net/bug.php?id=54254
Attachment: [text/x-patch] jewish_calendar_bug_54254.patch
Attachment: [text/x-patch] jewish_calendar_bug_54254.patch