com php-src: ported ext/gettext: ext/gettext/gettext.c

From: Date: Tue, 19 Aug 2014 20:05:37 +0000
Subject: com php-src: ported ext/gettext: ext/gettext/gettext.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-80733@lists.php.net to get a copy of this message
Commit: 0ccc2f5d6643e1a3364b89866bd50cb9d9b6d234 Author: Anatol Belski <ab@php.net> Tue, 19 Aug 2014 22:05:37 +0200 Parents: 48ba0a79627858ad48329ca26d80a082f4a0349e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ccc2f5d6643e1a3364b89866bd50cb9d9b6d234 Log: ported ext/gettext Changed paths: M ext/gettext/gettext.c Diff: diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c index 1e07000..59b9661 100644 --- a/ext/gettext/gettext.c +++ b/ext/gettext/gettext.c @@ -226,9 +226,9 @@ PHP_NAMED_FUNCTION(zif_dcgettext) { char *domain, *msgid, *msgstr; int domain_len, msgid_len; - long category; + php_int_t category; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssl", &domain, &domain_len, &msgid, &msgid_len, &category) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssi", &domain, &domain_len, &msgid, &msgid_len, &category) == FAILURE) { return; } @@ -281,9 +281,9 @@ PHP_NAMED_FUNCTION(zif_ngettext) { char *msgid1, *msgid2, *msgstr; int msgid1_len, msgid2_len; - long count; + php_int_t count; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssl", &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssi", &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count) == FAILURE) { return; } @@ -305,9 +305,9 @@ PHP_NAMED_FUNCTION(zif_dngettext) { char *domain, *msgid1, *msgid2, *msgstr = NULL; int domain_len, msgid1_len, msgid2_len; - long count; + php_int_t count; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssl", &domain, &domain_len, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssi", &domain, &domain_len, &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count) == FAILURE) { return; } @@ -331,11 +331,11 @@ PHP_NAMED_FUNCTION(zif_dcngettext) { char *domain, *msgid1, *msgid2, *msgstr = NULL; int domain_len, msgid1_len, msgid2_len; - long count, category; + php_int_t count, category; RETVAL_FALSE; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssll", &domain, &domain_len, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sssii", &domain, &domain_len, &msgid1, &msgid1_len, &msgid2, &msgid2_len, &count, &category) == FAILURE) { return; }

« previous php.cvs (#80733) next »