021.phpt 941 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --TEST--
  2. Bug #37276 (problems witch $_POST array)
  3. --INI--
  4. file_uploads=1
  5. upload_tmp_dir=.
  6. --POST_RAW--
  7. Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
  8. -----------------------------20896060251896012921717172737
  9. Content-Disposition: form-data; name="submitter"
  10. testname
  11. -----------------------------20896060251896012921717172737
  12. Content-Disposition: form-data; name="pics"; filename="bug37276.txt"
  13. Content-Type: text/plain
  14. bug37276
  15. -----------------------------20896060251896012921717172737--
  16. --FILE--
  17. <?php
  18. var_dump($_FILES);
  19. var_dump($_POST);
  20. ?>
  21. --EXPECTF--
  22. array(1) {
  23. ["pics"]=>
  24. array(6) {
  25. ["name"]=>
  26. string(12) "bug37276.txt"
  27. ["full_path"]=>
  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. }