File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / rfc1867_missing_boundary_2.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 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, v5_3_10, HEAD
php

    1: --TEST--
    2: rfc1867 missing boundary 2
    3: --INI--
    4: file_uploads=1
    5: error_reporting=E_ALL&~E_NOTICE
    6: comment=debug builds show some additional E_NOTICE errors
    7: upload_max_filesize=1024
    8: --POST_RAW--
    9: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
   10: -----------------------------20896060251896012921717172737
   11: Content-Disposition: form-data; name="file1"; filename="file1.txt"
   12: Content-Type: text/plain-file1
   13: 
   14: 1
   15: --FILE--
   16: <?php
   17: var_dump($_FILES);
   18: var_dump($_POST);
   19: ?>
   20: --EXPECTF--
   21: array(1) {
   22:   [%u|b%"file1"]=>
   23:   array(5) {
   24:     [%u|b%"name"]=>
   25:     %string|unicode%(9) "file1.txt"
   26:     [%u|b%"type"]=>
   27:     %string|unicode%(0) ""
   28:     [%u|b%"tmp_name"]=>
   29:     %string|unicode%(0) ""
   30:     [%u|b%"error"]=>
   31:     int(3)
   32:     [%u|b%"size"]=>
   33:     int(0)
   34:   }
   35: }
   36: array(0) {
   37: }

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