com php-src: fix c89 compat: ext/mbstring/php_unicode.c

From: Date: Fri, 28 Jul 2017 20:18:51 +0000
Subject: com php-src: fix c89 compat: ext/mbstring/php_unicode.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98857@lists.php.net to get a copy of this message
Commit: f9c3ee9ae8a41e2f47101c638491abd36ed09ce3 Author: Anatol Belski <ab@php.net> Fri, 28 Jul 2017 22:18:51 +0200 Parents: 853e73fb8e70f7d4a74d3a90f2d981da09b21640 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f9c3ee9ae8a41e2f47101c638491abd36ed09ce3 Log: fix c89 compat Changed paths: M ext/mbstring/php_unicode.c Diff: diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c index 71541a8..3b928bc 100644 --- a/ext/mbstring/php_unicode.c +++ b/ext/mbstring/php_unicode.c @@ -311,7 +311,7 @@ static int convert_case_filter(int c, void *void_data) { struct convert_case_data *data = (struct convert_case_data *) void_data; unsigned out[3]; - unsigned len; + unsigned len, i; switch (data->case_mode) { case PHP_UNICODE_CASE_UPPER_SIMPLE: out[0] = php_unicode_toupper_simple(c, data->no_encoding); @@ -368,7 +368,7 @@ static int convert_case_filter(int c, void *void_data) break; } - for (unsigned i = 0; i < len; i++) { + for (i = 0; i < len; i++) { (*data->next_filter->filter_function)(out[i], data->next_filter); } return 0;

« previous php.cvs (#98857) next »