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

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

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