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.
2 parents b445641 + 78767de commit f0e1847Copy full SHA for f0e1847
ext/calendar/easter.c
@@ -33,7 +33,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm)
33
struct tm te;
34
zend_long year, golden, solar, lunar, pfm, dom, tmp, easter, result;
35
zend_long method = CAL_EASTER_DEFAULT;
36
- const zend_long max_year = ZEND_LONG_MAX / 1.25;
+ const zend_long max_year = (zend_long)(ZEND_LONG_MAX / 5) * 4;
37
bool year_is_null = 1;
38
39
if (zend_parse_parameters(ZEND_NUM_ARGS(),
0 commit comments