From: Rui Hirokawa Date: Mon, 20 Dec 2010 14:38:08 +0000 (+0000) Subject: fixed compile error with VS2008. X-Git-Tag: php-5.4.0alpha1~191^2~475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f055f54a2f63a1601341cf4e63dfa00334944f3;p=php fixed compile error with VS2008. --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 95a3d00b65..89e88fc057 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1733,10 +1733,10 @@ PHP_FUNCTION(mb_http_input) case 'I': case 'i': { - array_init(return_value); const mbfl_encoding **entry = MBSTRG(http_input_list); const size_t n = MBSTRG(http_input_list_size); size_t i; + array_init(return_value); for (i = 0; i < n; i++) { add_next_index_string(return_value, (*entry)->name, 1); entry++; @@ -4468,9 +4468,9 @@ static void php_mb_populate_current_detect_order_list(TSRMLS_D) memcpy(entry, MBSTRG(detect_order_list), sizeof(mbfl_encoding*) * nentries); } else { const enum mbfl_no_encoding *src = MBSTRG(default_detect_order_list); + size_t i; nentries = MBSTRG(default_detect_order_list_size); entry = (const mbfl_encoding **)safe_emalloc(nentries, sizeof(mbfl_encoding*), 0); - size_t i; for (i = 0; i < nentries; i++) { entry[i] = mbfl_no2encoding(src[i]); }