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, 7 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

--TEST--
Shift_JIS request
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
  die("skip Requires mbstring extension");
}
?>
--INI--
file_uploads=1
mbstring.encoding_translation=1
mbstring.http_input=Shift_JIS
mbstring.internal_encoding=UTF-8
--POST_RAW--
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
-----------------------------20896060251896012921717172737
Content-Disposition: form-data; name="—\Ž\”\"

ƒhƒŒƒ~ƒtƒ@ƒ\
-----------------------------20896060251896012921717172737
Content-Disposition: form-data; name="pics"; filename="file1.txt"
Content-Type: text/plain

file1

-----------------------------20896060251896012921717172737--
--FILE--
<?php
var_dump($_FILES);
var_dump($_POST);
?>
--EXPECTF--
array(1) {
  ["pics"]=>
  array(5) {
    ["name"]=>
    string(9) "file1.txt"
    ["type"]=>
    string(10) "text/plain"
    ["tmp_name"]=>
    string(%d) "%s"
    ["error"]=>
    int(0)
    ["size"]=>
    int(6)
  }
}
array(1) {
  ["δΊˆθš•θƒ½"]=>
  string(18) "γƒ‰γƒ¬γƒŸγƒ•γ‚‘γ‚½"
}

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