summaryrefslogtreecommitdiff
path: root/ext/intl
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-01-18 22:43:32 -0800
committerStanislav Malyshev <stas@php.net>2015-01-18 22:44:35 -0800
commit02402ae695f7e8136048aad3eb0127a870b97e1f (patch)
tree2fdc6a73e85f0d767ddb2e21480cc37ed98ba58c /ext/intl
parent6c5b3df5fb5185afad1e427112d19b2eeb6603c6 (diff)
downloadphp-git-02402ae695f7e8136048aad3eb0127a870b97e1f.tar.gz
fix size & compilation on Darwin
Diffstat (limited to 'ext/intl')
-rw-r--r--ext/intl/uchar/uchar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/intl/uchar/uchar.c b/ext/intl/uchar/uchar.c
index b65417bc60..37060e022d 100644
--- a/ext/intl/uchar/uchar.c
+++ b/ext/intl/uchar/uchar.c
@@ -6,7 +6,7 @@
#define IC_METHOD(mname) PHP_METHOD(IntlChar, mname)
-inline int convert_cp(UChar32* pcp, zval *zcp) {
+static inline int convert_cp(UChar32* pcp, zval *zcp) {
zend_long cp = -1;
if (Z_TYPE_P(zcp) == IS_LONG) {
cp = Z_LVAL_P(zcp);
@@ -534,7 +534,8 @@ IC_METHOD(getFC_NFKC_Closure) {
zval *zcp;
UChar *closure;
char *ret;
- int32_t closure_len, ret_len;
+ int32_t closure_len;
+ size_t ret_len;
UErrorCode error = U_ZERO_ERROR;
if ((zend_parse_parameters(ZEND_NUM_ARGS(), "z", &zcp) == FAILURE) ||