summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 19:42:16 +0200
committerAnatol Belski <ab@php.net>2014-08-19 19:42:16 +0200
commit6428b498519442833afcd032f6648251d8b199fc (patch)
tree265995a0ba628ba54c477025de78dbf597dd0e45 /ext/mbstring/php_mbregex.c
parente8fcd52ef1d2bb215aa40a4b8507a760079e0497 (diff)
downloadphp-git-6428b498519442833afcd032f6648251d8b199fc.tar.gz
ported ext/mbstring
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index 4c30eee8a9..baf0a2d44a 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -1060,9 +1060,9 @@ PHP_FUNCTION(mb_split)
int string_len;
int n, err;
- long count = -1;
+ php_int_t count = -1;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &arg_pattern, &arg_pattern_len, &string, &string_len, &count) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|i", &arg_pattern, &arg_pattern_len, &string, &string_len, &count) == FAILURE) {
RETURN_FALSE;
}
@@ -1397,9 +1397,9 @@ PHP_FUNCTION(mb_ereg_search_getpos)
Set search start position */
PHP_FUNCTION(mb_ereg_search_setpos)
{
- long position;
+ php_int_t position;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &position) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &position) == FAILURE) {
return;
}