@@ 226-230 (lines=5) @@ | ||
223 | { |
|
224 | if ($month == 13 && $year == 14 && self::shouldEmulateBug67976()) { |
|
225 | return -2380948; |
|
226 | } elseif ($year > 14) { |
|
227 | $error_msg = PHP_VERSION_ID < 70200 ? 'invalid date.' : 'invalid date'; |
|
228 | ||
229 | return trigger_error($error_msg, E_USER_WARNING); |
|
230 | } else { |
|
231 | return self::calDaysInMonthCalendar(self::$french_calendar, $year, $month); |
|
232 | } |
|
233 | } |
|
@@ 678-682 (lines=5) @@ | ||
675 | public static function jdToJewish($julian_day, $hebrew, $fl) |
|
676 | { |
|
677 | if ($hebrew) { |
|
678 | if ($julian_day < 347998 || $julian_day > 4000075) { |
|
679 | $error_msg = PHP_VERSION_ID < 70200 ? 'Year out of range (0-9999).' : 'Year out of range (0-9999)'; |
|
680 | ||
681 | return trigger_error($error_msg, E_USER_WARNING); |
|
682 | } |
|
683 | ||
684 | return self::$jewish_calendar->jdToHebrew( |
|
685 | $julian_day, |