. Fixed bug #54682 (Tidy::diagnose() NULL pointer dereference).
(Maksymilian Arciemowicz, Felipe)
+- Mbstring
+ . Fixed bug #60306 (Characters lost while converting from cp936 to utf8).
+ (Laruence)
+
-CLI SAPI:
. Fixed bug #60159 (Router returns false, but POST is not passed to requested
resource). (Laruence)
mbfl_filt_conv_cp936_wchar(int c, mbfl_convert_filter *filter)
{
int k;
- int c1, c2, w;
+ int c1, c2, w = -1;
switch (filter->status) {
case 0:
return c;
}
-
-
--- /dev/null
+--TEST--
+Bug #60306 (Characters lost while converting from cp936 to utf8)
+--SKIPIF--
+<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
+--FILE--
+<?php
+$s = "洪仁玕";
+var_dump($s === mb_convert_encoding(mb_convert_encoding($s, "cp936", "utf8"), "utf8", "cp936"));
+?>
+--EXPECT--
+bool(true)