We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b855eb commit 6d9903fCopy full SHA for 6d9903f
ext/calendar/easter.c
@@ -28,7 +28,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm)
28
struct tm te;
29
zend_long year, golden, solar, lunar, pfm, dom, tmp, easter, result;
30
zend_long method = CAL_EASTER_DEFAULT;
31
- const zend_long max_year = ZEND_LONG_MAX / 1.25;
+ const zend_long max_year = (zend_long)(ZEND_LONG_MAX / 5) * 4;
32
bool year_is_null = 1;
33
34
if (zend_parse_parameters(ZEND_NUM_ARGS(),
0 commit comments