com php-src: more fixes to string.c: ext/standard/string.c

From: Date: Mon, 29 Jul 2013 11:50:47 +0000
Subject: com php-src: more fixes to string.c: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73632@lists.php.net to get a copy of this message
Commit: 88960bba1e25a411280667b2bccf6e6e3a6638c9 Author: Anatol Belski <ab@php.net> Mon, 29 Jul 2013 04:50:47 -0700 Parents: 62c1f4127b72c8337a177c0df39580a58d63e4d3 Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=88960bba1e25a411280667b2bccf6e6e3a6638c9 Log: more fixes to string.c Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index 5d22db1..af39a37 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2290,7 +2290,7 @@ PHP_FUNCTION(substr_replace) zval **repl; char *result; zend_str_size result_len; - int l = 0; + int l = 0; /* l and f should be size_t, however this needs much closer below logic investigation.*/ int f; int argc = ZEND_NUM_ARGS(); @@ -3226,7 +3226,7 @@ PHP_FUNCTION(similar_text) char *t1, *t2; zval **percent = NULL; int ac = ZEND_NUM_ARGS(); - int sim; + zend_str_size_int sim; zend_str_size t1_len, t2_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|Z", &t1, &t1_len, &t2, &t2_len, &percent) == FAILURE) { @@ -4145,7 +4145,7 @@ static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines) } } if (char_count == max_chars) { /* try to avoid breaking words */ - int new_char_count=char_count, new_begin=begin; + zend_str_size_int new_char_count=char_count, new_begin=begin; while (new_char_count > 0) { if (_isblank(heb_str[new_begin]) || _isnewline(heb_str[new_begin])) {

« previous php.cvs (#73632) next »