Annotation of embedaddon/php/tests/basic/029.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Shift_JIS request
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (!extension_loaded("mbstring")) {
        !             6:   die("skip Requires mbstring extension");
        !             7: }
        !             8: ?>
        !             9: --INI--
        !            10: file_uploads=1
        !            11: mbstring.encoding_translation=1
        !            12: mbstring.http_input=Shift_JIS
        !            13: mbstring.internal_encoding=UTF-8
        !            14: --POST_RAW--
        !            15: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
        !            16: -----------------------------20896060251896012921717172737
        !            17: Content-Disposition: form-data; name="—\Ž\”\"
        !            18: 
        !            19: ƒhƒŒƒ~ƒtƒ@ƒ\
        !            20: -----------------------------20896060251896012921717172737
        !            21: Content-Disposition: form-data; name="pics"; filename="file1.txt"
        !            22: Content-Type: text/plain
        !            23: 
        !            24: file1
        !            25: 
        !            26: -----------------------------20896060251896012921717172737--
        !            27: --FILE--
        !            28: <?php
        !            29: var_dump($_FILES);
        !            30: var_dump($_POST);
        !            31: ?>
        !            32: --EXPECTF--
        !            33: array(1) {
        !            34:   ["pics"]=>
        !            35:   array(5) {
        !            36:     ["name"]=>
        !            37:     string(9) "file1.txt"
        !            38:     ["type"]=>
        !            39:     string(10) "text/plain"
        !            40:     ["tmp_name"]=>
        !            41:     string(%d) "%s"
        !            42:     ["error"]=>
        !            43:     int(0)
        !            44:     ["size"]=>
        !            45:     int(6)
        !            46:   }
        !            47: }
        !            48: array(1) {
        !            49:   ["δΊˆθš•θƒ½"]=>
        !            50:   string(18) "γƒ‰γƒ¬γƒŸγƒ•γ‚‘γ‚½"
        !            51: }

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