moriyoshi Mon Aug 4 21:10:18 2008 UTC
Modified files:
/php-src/ext/mbstring mbstring.c
Log:
- More fixes for bug #45691
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?r1=1.294&r2=1.295&diff_format=u
Index: php-src/ext/mbstring/mbstring.c
diff -u php-src/ext/mbstring/mbstring.c:1.294
php-src/ext/mbstring/mbstring.c:1.295
--- php-src/ext/mbstring/mbstring.c:1.294 Sun Aug 3 11:56:45 2008
+++ php-src/ext/mbstring/mbstring.c Mon Aug 4 21:10:17 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.294 2008/08/03 11:56:45 jani Exp $ */
+/* $Id: mbstring.c,v 1.295 2008/08/04 21:10:17 moriyoshi Exp $ */
/*
* PHP 4 Multibyte String module "mbstring"
@@ -1239,6 +1239,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;
@@ -1274,7 +1279,8 @@
void *re = NULL;
if (!new_value) {
- return SUCCESS;
+ new_value = entry->orig_value;
+ new_value_length = entry->orig_value_length;
}
php_trim(new_value, new_value_length, NULL, 0, &tmp, 3 TSRMLS_CC);
@@ -1457,9 +1463,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