rfc1867_missing_boundary_2.phpt 644 B

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