diff options
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-07.phpt')
-rw-r--r-- | ext/mbstring/tests/zend_multibyte-07.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend_multibyte-07.phpt b/ext/mbstring/tests/zend_multibyte-07.phpt new file mode 100644 index 0000000..30305f5 --- /dev/null +++ b/ext/mbstring/tests/zend_multibyte-07.phpt @@ -0,0 +1,19 @@ +--TEST-- +zend multibyte (7) +--SKIPIF-- +<?php +ini_set("mbstring.script_encoding","SJIS"); +if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") { + die("skip zend-multibyte is not available"); +} +?> +--INI-- +mbstring.script_encoding=ISO-8859-1 +mbstring.internal_encoding=EUC-JP +--FILE-- +<?php +declare(encoding="UTF-8"); +var_dump(bin2hex("ใในใ")); +?> +--EXPECT-- +string(12) "a5c6a5b9a5c8" |