summaryrefslogtreecommitdiff
path: root/ext/intl/calendar/gregoriancalendar_methods.cpp
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 22:57:17 +0200
committerAnatol Belski <ab@php.net>2014-08-19 22:57:17 +0200
commit063079b62e383036dd24cd6465d3db31edf6cb6d (patch)
treefdbf5ac3e408fbd7ef46be5ffc3d65b33eaccc24 /ext/intl/calendar/gregoriancalendar_methods.cpp
parent729bce4321b54e7054a88c0d90f4d102729ba570 (diff)
downloadphp-git-063079b62e383036dd24cd6465d3db31edf6cb6d.tar.gz
ported ext/intl, bugfixes to go
Diffstat (limited to 'ext/intl/calendar/gregoriancalendar_methods.cpp')
-rw-r--r--ext/intl/calendar/gregoriancalendar_methods.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/intl/calendar/gregoriancalendar_methods.cpp b/ext/intl/calendar/gregoriancalendar_methods.cpp
index e62164f7d6..09ad390b96 100644
--- a/ext/intl/calendar/gregoriancalendar_methods.cpp
+++ b/ext/intl/calendar/gregoriancalendar_methods.cpp
@@ -43,7 +43,7 @@ static void _php_intlgregcal_constructor_body(INTERNAL_FUNCTION_PARAMETERS)
*args = &args_a[0];
char *locale = NULL;
int locale_len;
- long largs[6];
+ php_int_t largs[6];
UErrorCode status = U_ZERO_ERROR;
int variant;
intl_error_reset(NULL TSRMLS_CC);
@@ -242,11 +242,11 @@ U_CFUNC PHP_FUNCTION(intlgregcal_get_gregorian_change)
U_CFUNC PHP_FUNCTION(intlgregcal_is_leap_year)
{
- long year;
+ php_int_t year;
CALENDAR_METHOD_INIT_VARS;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(),
- "Ol", &object, GregorianCalendar_ce_ptr, &year) == FAILURE) {
+ "Oi", &object, GregorianCalendar_ce_ptr, &year) == FAILURE) {
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
"intlgregcal_is_leap_year: bad arguments", 0 TSRMLS_CC);
RETURN_FALSE;