Annotation of embedaddon/php/Zend/tests/multibyte/multibyte_encoding_004.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: test for mbstring script_encoding for flex unsafe encoding (Shift_JIS)
                      3: --SKIPIF--
                      4: <?php
1.1.1.2 ! misho       5: if (!in_array("zend.detect_unicode", array_keys(ini_get_all()))) {
1.1       misho       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--
1.1.1.2 ! misho      13: zend.multibyte=1
        !            14: zend.script_encoding=Shift_JIS
1.1       misho      15: mbstring.internal_encoding=Shift_JIS
                     16: --FILE--
                     17: <?php
                     18:        function 予蚕能($引数)
                     19:        {
                     20:                echo $引数;
                     21:        }
                     22: 
                     23:        予蚕能("ドレミファソ");
                     24: ?>
                     25: --EXPECT--
                     26: ドレミファソ

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