File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / 029.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

    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>