rfc1867_missing_boundary_2.phpt 794 B

12345678910111213141516171819202122232425262728293031323334353637
  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. 1
  14. --FILE--
  15. <?php
  16. var_dump($_FILES);
  17. var_dump($_POST);
  18. ?>
  19. --EXPECTF--
  20. array(1) {
  21. [%u|b%"file1"]=>
  22. array(5) {
  23. [%u|b%"name"]=>
  24. %string|unicode%(9) "file1.txt"
  25. [%u|b%"type"]=>
  26. %string|unicode%(0) ""
  27. [%u|b%"tmp_name"]=>
  28. %string|unicode%(0) ""
  29. [%u|b%"error"]=>
  30. int(3)
  31. [%u|b%"size"]=>
  32. int(0)
  33. }
  34. }
  35. array(0) {
  36. }