diff options
author | Anatol Belski <ab@php.net> | 2014-08-19 22:57:17 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-19 22:57:17 +0200 |
commit | 063079b62e383036dd24cd6465d3db31edf6cb6d (patch) | |
tree | fdbf5ac3e408fbd7ef46be5ffc3d65b33eaccc24 /ext/intl/dateformat/dateformat_attr.c | |
parent | 729bce4321b54e7054a88c0d90f4d102729ba570 (diff) | |
download | php-git-063079b62e383036dd24cd6465d3db31edf6cb6d.tar.gz |
ported ext/intl, bugfixes to go
Diffstat (limited to 'ext/intl/dateformat/dateformat_attr.c')
-rw-r--r-- | ext/intl/dateformat/dateformat_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/dateformat/dateformat_attr.c b/ext/intl/dateformat/dateformat_attr.c index a451054554..0ee5412a90 100644 --- a/ext/intl/dateformat/dateformat_attr.c +++ b/ext/intl/dateformat/dateformat_attr.c @@ -170,12 +170,12 @@ PHP_FUNCTION( datefmt_set_pattern ) PHP_FUNCTION( datefmt_get_locale ) { char *loc; - long loc_type =ULOC_ACTUAL_LOCALE; + php_int_t loc_type =ULOC_ACTUAL_LOCALE; DATE_FORMAT_METHOD_INIT_VARS; /* Parse parameters. */ - if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", + if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|i", &object, IntlDateFormatter_ce_ptr,&loc_type) == FAILURE ) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, |