]> granicus.if.org Git - php/commitdiff
ported ext/enchant
authorAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 19:24:15 +0000 (21:24 +0200)
committerAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 19:24:15 +0000 (21:24 +0200)
ext/enchant/enchant.c

index 5f4dcb6ee402ee430b4dfedba85d8e6b3d00fe57..e8c9555152eb020226e94a60d9447ca894ac4b2b 100644 (file)
@@ -422,11 +422,11 @@ PHP_FUNCTION(enchant_broker_set_dict_path)
 {
        zval *broker;
        enchant_broker *pbroker;
-       long dict_type;
+       php_int_t dict_type;
        char *value;
        int value_len;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rls", &broker, &dict_type, &value, &value_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ris", &broker, &dict_type, &value, &value_len) == FAILURE) {
                RETURN_FALSE;
        }
 
@@ -462,10 +462,10 @@ PHP_FUNCTION(enchant_broker_get_dict_path)
 {
        zval *broker;
        enchant_broker *pbroker;
-       long dict_type;
+       php_int_t dict_type;
        char *value;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &broker, &dict_type) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ri", &broker, &dict_type) == FAILURE) {
                RETURN_FALSE;
        }