1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

fix build warning for GH-16228

close GH-16250
This commit is contained in:
David Carlier
2024-10-05 15:46:10 +01:00
parent 4b855eba15
commit 6d9903f3e6

View File

@@ -28,7 +28,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, bool gm)
struct tm te;
zend_long year, golden, solar, lunar, pfm, dom, tmp, easter, result;
zend_long method = CAL_EASTER_DEFAULT;
const zend_long max_year = ZEND_LONG_MAX / 1.25;
const zend_long max_year = (zend_long)(ZEND_LONG_MAX / 5) * 4;
bool year_is_null = 1;
if (zend_parse_parameters(ZEND_NUM_ARGS(),