diff options
Diffstat (limited to 'ext/gettext/gettext.c')
-rw-r--r-- | ext/gettext/gettext.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c index 1e07000c33..3f1909e753 100644 --- a/ext/gettext/gettext.c +++ b/ext/gettext/gettext.c @@ -162,7 +162,7 @@ PHP_MINFO_FUNCTION(php_gettext) PHP_NAMED_FUNCTION(zif_textdomain) { char *domain, *domain_name, *retval; - int domain_len; + size_t domain_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &domain, &domain_len) == FAILURE) { return; @@ -187,7 +187,7 @@ PHP_NAMED_FUNCTION(zif_textdomain) PHP_NAMED_FUNCTION(zif_gettext) { char *msgid, *msgstr; - int msgid_len; + size_t msgid_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &msgid, &msgid_len) == FAILURE) { return; @@ -205,7 +205,7 @@ PHP_NAMED_FUNCTION(zif_gettext) PHP_NAMED_FUNCTION(zif_dgettext) { char *domain, *msgid, *msgstr; - int domain_len, msgid_len; + size_t domain_len, msgid_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &domain, &domain_len, &msgid, &msgid_len) == FAILURE) { return; @@ -225,8 +225,8 @@ PHP_NAMED_FUNCTION(zif_dgettext) PHP_NAMED_FUNCTION(zif_dcgettext) { char *domain, *msgid, *msgstr; - int domain_len, msgid_len; - long category; + size_t domain_len, msgid_len; + zend_long category; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssl", &domain, &domain_len, &msgid, &msgid_len, &category) == FAILURE) { return; @@ -246,7 +246,7 @@ PHP_NAMED_FUNCTION(zif_dcgettext) PHP_NAMED_FUNCTION(zif_bindtextdomain) { char *domain, *dir; - int domain_len, dir_len; + size_t domain_len, dir_len; char *retval, dir_name[MAXPATHLEN]; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &domain, &domain_len, &dir, &dir_len) == FAILURE) { @@ -280,8 +280,8 @@ PHP_NAMED_FUNCTION(zif_bindtextdomain) PHP_NAMED_FUNCTION(zif_ngettext) { char *msgid1, *msgid2, *msgstr; - int msgid1_len, msgid2_len; - long count; + size_t msgid1_len, msgid2_len; + zend_long count; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssl", &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count) == FAILURE) { return; @@ -304,8 +304,8 @@ PHP_NAMED_FUNCTION(zif_ngettext) PHP_NAMED_FUNCTION(zif_dngettext) { char *domain, *msgid1, *msgid2, *msgstr = NULL; - int domain_len, msgid1_len, msgid2_len; - long count; + size_t domain_len, msgid1_len, msgid2_len; + zend_long count; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssl", &domain, &domain_len, &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count) == FAILURE) { @@ -330,8 +330,8 @@ PHP_NAMED_FUNCTION(zif_dngettext) PHP_NAMED_FUNCTION(zif_dcngettext) { char *domain, *msgid1, *msgid2, *msgstr = NULL; - int domain_len, msgid1_len, msgid2_len; - long count, category; + size_t domain_len, msgid1_len, msgid2_len; + zend_long count, category; RETVAL_FALSE; @@ -360,7 +360,7 @@ PHP_NAMED_FUNCTION(zif_dcngettext) PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset) { char *domain, *codeset, *retval = NULL; - int domain_len, codeset_len; + size_t domain_len, codeset_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &domain, &domain_len, &codeset, &codeset_len) == FAILURE) { return; |