moriyoshi Mon Aug 4 21:06:50 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/mbstring mbstring.c
Log:
- MFH: More fixes for bug #45691
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?r1=1.224.2.22.2.37&r2=1.224.2.22.2.38&diff_format=u
Index: php-src/ext/mbstring/mbstring.c
diff -u php-src/ext/mbstring/mbstring.c:1.224.2.22.2.37
php-src/ext/mbstring/mbstring.c:1.224.2.22.2.38
--- php-src/ext/mbstring/mbstring.c:1.224.2.22.2.37 Sun Aug 3 11:59:00 2008
+++ php-src/ext/mbstring/mbstring.c Mon Aug 4 21:06:50 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.224.2.22.2.37 2008/08/03 11:59:00 jani Exp $ */
+/* $Id: mbstring.c,v 1.224.2.22.2.38 2008/08/04 21:06:50 moriyoshi Exp $ */
/*
* PHP 4 Multibyte String module "mbstring"
@@ -802,6 +802,11 @@
}
}
}
+ } else {
+ MBSTRG(filter_illegal_mode) =
MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR;
+ MBSTRG(current_filter_illegal_mode) =
MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR;
+ MBSTRG(filter_illegal_substchar) = 0x3f; /* '?' */
+ MBSTRG(current_filter_illegal_substchar) = 0x3f; /* '?'
*/
}
return SUCCESS;
@@ -972,9 +977,7 @@
MBSTRG(current_filter_illegal_mode) = MBSTRG(filter_illegal_mode);
MBSTRG(current_filter_illegal_substchar) =
MBSTRG(filter_illegal_substchar);
- if (!MBSTRG(encoding_translation)) {
- MBSTRG(illegalchars) = 0;
- }
+ MBSTRG(illegalchars) = 0;
n = 0;
if (MBSTRG(detect_order_list)) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php