Annotation of embedaddon/php/tests/basic/021.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Bug #37276 (problems witch $_POST array)
                      3: --INI--
                      4: file_uploads=1
1.1.1.2 ! misho       5: upload_tmp_dir=.
1.1       misho       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>