021.phpt 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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(5) {
  25. ["name"]=>
  26. string(12) "bug37276.txt"
  27. ["type"]=>
  28. string(10) "text/plain"
  29. ["tmp_name"]=>
  30. string(%d) "%s"
  31. ["error"]=>
  32. int(0)
  33. ["size"]=>
  34. int(9)
  35. }
  36. }
  37. array(1) {
  38. ["submitter"]=>
  39. string(8) "testname"
  40. }