rfc1867_missing_boundary_2.phpt 689 B

12345678910111213141516171819202122232425262728293031323334353637
  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. --EXPECT--
  18. array(1) {
  19. ["file1"]=>
  20. array(6) {
  21. ["name"]=>
  22. string(9) "file1.txt"
  23. ["full_path"]=>
  24. string(9) "file1.txt"
  25. ["type"]=>
  26. string(0) ""
  27. ["tmp_name"]=>
  28. string(0) ""
  29. ["error"]=>
  30. int(3)
  31. ["size"]=>
  32. int(0)
  33. }
  34. }
  35. array(0) {
  36. }