Annotation of embedaddon/php/ext/mbstring/tests/zend_multibyte-09.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: zend multibyte (9)
3: --SKIPIF--
4: <?php
5: ini_set("mbstring.script_encoding","SJIS");
6: if (ini_set("mbstring.script_encoding","SJIS") != "SJIS") {
7: die("skip zend-multibyte is not available");
8: }
9: ?>
10: --INI--
11: mbstring.script_encoding=cp1251
12: mbstring.internal_encoding=UTF-8
13: --FILE--
14: <?php
15: declare(encoding="EUC-JP");
16: // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
17: // back to UTF-8. There should be only a pair of consecutive bytes that is
18: // valid EUC-encoded character "鴻".
19: var_dump(bin2hex("テスト"));
20: ?>
21: --EXPECT--
22: string(16) "3f3f3fe9b4bb3f3f"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>