summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2009-02-02 04:52:00 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2009-02-02 04:52:00 +0000
commitc3df5aa3dea437beeeadf7b42e0a3d5d12351f4f (patch)
tree8b8e6fdb738c7dd2ef42f942778717c73d284532
parentabe02d6b3d44ca1a4a31a99435576fe67066399c (diff)
downloadphp-git-c3df5aa3dea437beeeadf7b42e0a3d5d12351f4f.tar.gz
* Forgot to add the test.
-rw-r--r--ext/mbstring/tests/bug46843.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/mbstring/tests/bug46843.phpt b/ext/mbstring/tests/bug46843.phpt
new file mode 100644
index 0000000000..136195cfe0
--- /dev/null
+++ b/ext/mbstring/tests/bug46843.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #46843 (CP936 euro symbol is not converted properly)
+--SKIPIF--
+<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
+--FILE--
+<?php
+var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936')));
+var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
+?>
+--EXPECT--
+string(4) "20ac"
+string(2) "80"