hirokawa Mon, 20 Dec 2010 14:38:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306509
Log:
fixed compile error with VS2008.
Changed paths:
U php/php-src/trunk/ext/mbstring/mbstring.c
Modified: php/php-src/trunk/ext/mbstring/mbstring.c
===================================================================
--- php/php-src/trunk/ext/mbstring/mbstring.c 2010-12-20 14:29:40 UTC (rev
306508)
+++ php/php-src/trunk/ext/mbstring/mbstring.c 2010-12-20 14:38:08 UTC (rev
306509)
@@ -1733,10 +1733,10 @@
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 @@
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]);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php