diff options
Diffstat (limited to 'ext/calendar/easter.c')
-rw-r--r-- | ext/calendar/easter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/calendar/easter.c b/ext/calendar/easter.c index 82c0aa633c..a61a970461 100644 --- a/ext/calendar/easter.c +++ b/ext/calendar/easter.c @@ -24,14 +24,14 @@ #include "sdncal.h" #include <time.h> -static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, int gm) +static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, php_int_t gm) { /* based on code by Simon Kershaw, <webmaster@ely.anglican.org> */ struct tm te; - long year, golden, solar, lunar, pfm, dom, tmp, easter, result; - long method = CAL_EASTER_DEFAULT; + php_int_t year, golden, solar, lunar, pfm, dom, tmp, easter, result; + php_int_t method = CAL_EASTER_DEFAULT; /* Default to the current year if year parameter is not given */ { @@ -47,7 +47,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, int gm) } if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, - "|ll", &year, &method) == FAILURE) { + "|ii", &year, &method) == FAILURE) { return; } @@ -115,7 +115,7 @@ static void _cal_easter(INTERNAL_FUNCTION_PARAMETERS, int gm) } else { /* return the days after March 21 */ result = easter; } - ZVAL_LONG(return_value, result); + ZVAL_INT(return_value, result); } /* {{{ proto int easter_date([int year]) |