File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / 021.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:14 2013 UTC (11 years, 2 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: --TEST--
    2: Bug #37276 (problems witch $_POST array)
    3: --INI--
    4: file_uploads=1
    5: upload_tmp_dir=.
    6: --POST_RAW--
    7: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
    8: -----------------------------20896060251896012921717172737
    9: Content-Disposition: form-data; name="submitter"
   10: 
   11: testname
   12: -----------------------------20896060251896012921717172737
   13: Content-Disposition: form-data; name="pics"; filename="bug37276.txt"
   14: Content-Type: text/plain
   15: 
   16: bug37276
   17: 
   18: -----------------------------20896060251896012921717172737--
   19: --FILE--
   20: <?php
   21: var_dump($_FILES);
   22: var_dump($_POST);
   23: ?>
   24: --EXPECTF--
   25: array(1) {
   26:   ["pics"]=>
   27:   array(5) {
   28:     ["name"]=>
   29:     string(12) "bug37276.txt"
   30:     ["type"]=>
   31:     string(10) "text/plain"
   32:     ["tmp_name"]=>
   33:     string(%d) "%s"
   34:     ["error"]=>
   35:     int(0)
   36:     ["size"]=>
   37:     int(9)
   38:   }
   39: }
   40: array(1) {
   41:   ["submitter"]=>
   42:   string(8) "testname"
   43: }

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