summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_methods.cpp
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2014-09-16 13:45:06 +0100
committerAndrea Faulds <ajf@ajf.me>2014-09-16 13:45:06 +0100
commitdb72160e5ac2b267b9ffa23ad84e62e609382a44 (patch)
tree6e50c2826f98308d500cc826934a503751d4d566 /ext/intl/breakiterator/breakiterator_methods.cpp
parentbe88d0e5d4ab5fdf775f3e38cf054aa0451f0d36 (diff)
parentf469dc7429f2257aac6f46228302408608fbd62f (diff)
downloadphp-git-db72160e5ac2b267b9ffa23ad84e62e609382a44.tar.gz
Merge branch 'master' into integer_semantics
Conflicts: Zend/zend_operators.h
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_methods.cpp')
-rw-r--r--ext/intl/breakiterator/breakiterator_methods.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/intl/breakiterator/breakiterator_methods.cpp b/ext/intl/breakiterator/breakiterator_methods.cpp
index ed5944a3da..cb5f669d05 100644
--- a/ext/intl/breakiterator/breakiterator_methods.cpp
+++ b/ext/intl/breakiterator/breakiterator_methods.cpp
@@ -46,7 +46,7 @@ static void _breakiter_factory(const char *func_name,
{
BreakIterator *biter;
const char *locale_str = NULL;
- int dummy;
+ size_t dummy;
char *msg;
UErrorCode status = UErrorCode();
intl_error_reset(NULL TSRMLS_CC);
@@ -149,7 +149,7 @@ U_CFUNC PHP_FUNCTION(breakiter_get_text)
U_CFUNC PHP_FUNCTION(breakiter_set_text)
{
char *text;
- int text_len;
+ size_t text_len;
UText *ut = NULL;
zval *textzv;
BREAKITER_METHOD_INIT_VARS;
@@ -208,7 +208,7 @@ static void _breakiter_no_args_ret_int32(
int32_t res = (bio->biter->*func)();
- RETURN_LONG((long)res);
+ RETURN_LONG((zend_long)res);
}
static void _breakiter_int32_ret_int32(
@@ -217,7 +217,7 @@ static void _breakiter_int32_ret_int32(
INTERNAL_FUNCTION_PARAMETERS)
{
char *msg;
- long arg;
+ zend_long arg;
BREAKITER_METHOD_INIT_VARS;
object = getThis();
@@ -240,7 +240,7 @@ static void _breakiter_int32_ret_int32(
int32_t res = (bio->biter->*func)((int32_t)arg);
- RETURN_LONG((long)res);
+ RETURN_LONG((zend_long)res);
}
U_CFUNC PHP_FUNCTION(breakiter_first)
@@ -308,7 +308,7 @@ U_CFUNC PHP_FUNCTION(breakiter_current)
int32_t res = bio->biter->current();
- RETURN_LONG((long)res);
+ RETURN_LONG((zend_long)res);
}
U_CFUNC PHP_FUNCTION(breakiter_following)
@@ -327,7 +327,7 @@ U_CFUNC PHP_FUNCTION(breakiter_preceding)
U_CFUNC PHP_FUNCTION(breakiter_is_boundary)
{
- long offset;
+ zend_long offset;
BREAKITER_METHOD_INIT_VARS;
object = getThis();
@@ -349,12 +349,12 @@ U_CFUNC PHP_FUNCTION(breakiter_is_boundary)
UBool res = bio->biter->isBoundary((int32_t)offset);
- RETURN_BOOL((long)res);
+ RETURN_BOOL((zend_long)res);
}
U_CFUNC PHP_FUNCTION(breakiter_get_locale)
{
- long locale_type;
+ zend_long locale_type;
BREAKITER_METHOD_INIT_VARS;
object = getThis();
@@ -382,7 +382,7 @@ U_CFUNC PHP_FUNCTION(breakiter_get_locale)
U_CFUNC PHP_FUNCTION(breakiter_get_parts_iterator)
{
- long key_type = 0;
+ zend_long key_type = 0;
BREAKITER_METHOD_INIT_VARS;
object = getThis();
@@ -422,7 +422,7 @@ U_CFUNC PHP_FUNCTION(breakiter_get_error_code)
if (bio == NULL)
RETURN_FALSE;
- RETURN_LONG((long)BREAKITER_ERROR_CODE(bio));
+ RETURN_LONG((zend_long)BREAKITER_ERROR_CODE(bio));
}
U_CFUNC PHP_FUNCTION(breakiter_get_error_message)