Annotation of embedaddon/php/Zend/tests/multibyte/multibyte_encoding_001.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Zend Multibyte and ShiftJIS
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
        !             6:   die("skip Requires configure --enable-zend-multibyte option");
        !             7: }
        !             8: if (!extension_loaded("mbstring")) {
        !             9:   die("skip Requires mbstring extension");
        !            10: }
        !            11: ?>
        !            12: --INI--
        !            13: mbstring.internal_encoding=SJIS
        !            14: --FILE--
        !            15: <?php
        !            16: declare(encoding='Shift_JIS');
        !            17: $s = "•\"; // 0x95+0x5c in script, not somewhere else "
        !            18: printf("%x:%x\n", ord($s[0]), ord($s[1]));
        !            19: ?>
        !            20: ===DONE===
        !            21: --EXPECT--
        !            22: 95:5c
        !            23: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>