diff options
author | Anatol Belski <ab@php.net> | 2014-08-25 21:51:49 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-25 21:51:49 +0200 |
commit | af59e92b24c8f624672720d47ef65bd8457728b9 (patch) | |
tree | 1da992a4689783e1351760a8702cbf6844ad37aa /ext/mbstring | |
parent | b9514bb8fd27e2d841bab3eb256fcbaa613aa049 (diff) | |
download | php-git-af59e92b24c8f624672720d47ef65bd8457728b9.tar.gz |
master renames phase 7PRE_AST_MERGE
Diffstat (limited to 'ext/mbstring')
-rw-r--r-- | ext/mbstring/mbstring.c | 14 | ||||
-rw-r--r-- | ext/mbstring/php_mbregex.c | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 4c78788127..3ad94d0c40 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1993,7 +1993,7 @@ PHP_FUNCTION(mb_substitute_character) } else if (strncasecmp("entity", Z_STRVAL_P(arg1), Z_STRLEN_P(arg1)) == 0) { MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_ENTITY; } else { - convert_to_int_ex(arg1); + convert_to_long_ex(arg1); if (Z_LVAL_P(arg1) < 0xffff && Z_LVAL_P(arg1) > 0x0) { MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; @@ -2005,7 +2005,7 @@ PHP_FUNCTION(mb_substitute_character) } break; default: - convert_to_int_ex(arg1); + convert_to_long_ex(arg1); if (Z_LVAL_P(arg1) < 0xffff && Z_LVAL_P(arg1) > 0x0) { MBSTRG(current_filter_illegal_mode) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR; MBSTRG(current_filter_illegal_substchar) = Z_LVAL_P(arg1); @@ -2356,14 +2356,14 @@ PHP_FUNCTION(mb_strrpos) } if (str_flg) { - convert_to_int_ex(zoffset); + convert_to_long_ex(zoffset); offset = Z_LVAL_P(zoffset); } else { enc_name = enc_name2; enc_name_len = enc_name_len2; } } else { - convert_to_int_ex(zoffset); + convert_to_long_ex(zoffset); offset = Z_LVAL_P(zoffset); } } @@ -2777,7 +2777,7 @@ PHP_FUNCTION(mb_substr) if (argc < 3 || Z_TYPE_P(z_len) == IS_NULL) { len = str_len; } else { - convert_to_int_ex(z_len); + convert_to_long_ex(z_len); len = Z_LVAL_P(z_len); } @@ -2853,7 +2853,7 @@ PHP_FUNCTION(mb_strcut) if (argc < 3 || Z_TYPE_P(z_len) == IS_NULL) { len = string.len; } else { - convert_to_int_ex(z_len); + convert_to_long_ex(z_len); len = Z_LVAL_P(z_len); } @@ -3814,7 +3814,7 @@ php_mb_numericentity_exec(INTERNAL_FUNCTION_PARAMETERS, int type) mapelm = convmap; mapsize = 0; ZEND_HASH_FOREACH_VAL(target_hash, hash_entry) { - convert_to_int_ex(hash_entry); + convert_to_long_ex(hash_entry); *mapelm++ = Z_LVAL_P(hash_entry); mapsize++; } ZEND_HASH_FOREACH_END(); diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 2237a318fe..35c741bb37 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -711,7 +711,7 @@ static void _php_mb_regex_ereg_exec(INTERNAL_FUNCTION_PARAMETERS, int icase) if (Z_TYPE_P(arg_pattern) != IS_STRING) { /* we convert numbers to integers and treat them as a string */ if (Z_TYPE_P(arg_pattern) == IS_DOUBLE) { - convert_to_int_ex(arg_pattern); /* get rid of decimal places */ + convert_to_long_ex(arg_pattern); /* get rid of decimal places */ } convert_to_string_ex(arg_pattern); /* don't bother doing an extended regex with just a number */ @@ -858,7 +858,7 @@ static void _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, OnigOp arg_pattern_len = Z_STRLEN_P(arg_pattern_zval); } else { /* FIXME: this code is not multibyte aware! */ - convert_to_int_ex(arg_pattern_zval); + convert_to_long_ex(arg_pattern_zval); pat_buf[0] = (char)Z_LVAL_P(arg_pattern_zval); pat_buf[1] = '\0'; |