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/collator/collator_attr.c | |
parent | 729bce4321b54e7054a88c0d90f4d102729ba570 (diff) | |
download | php-git-063079b62e383036dd24cd6465d3db31edf6cb6d.tar.gz |
ported ext/intl, bugfixes to go
Diffstat (limited to 'ext/intl/collator/collator_attr.c')
-rw-r--r-- | ext/intl/collator/collator_attr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/intl/collator/collator_attr.c b/ext/intl/collator/collator_attr.c index 061e4c0146..a0a4bf8df3 100644 --- a/ext/intl/collator/collator_attr.c +++ b/ext/intl/collator/collator_attr.c @@ -33,12 +33,12 @@ */ PHP_FUNCTION( collator_get_attribute ) { - long attribute, value; + php_int_t attribute, value; COLLATOR_METHOD_INIT_VARS /* Parse parameters. */ - if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", + if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oi", &object, Collator_ce_ptr, &attribute ) == FAILURE ) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, @@ -64,12 +64,12 @@ PHP_FUNCTION( collator_get_attribute ) */ PHP_FUNCTION( collator_set_attribute ) { - long attribute, value; + php_int_t attribute, value; COLLATOR_METHOD_INIT_VARS /* Parse parameters. */ - if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oll", + if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oii", &object, Collator_ce_ptr, &attribute, &value ) == FAILURE) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, @@ -123,12 +123,12 @@ PHP_FUNCTION( collator_get_strength ) */ PHP_FUNCTION( collator_set_strength ) { - long strength; + php_int_t strength; COLLATOR_METHOD_INIT_VARS /* Parse parameters. */ - if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", + if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oi", &object, Collator_ce_ptr, &strength ) == FAILURE ) { intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR, |