You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
912 B

20 years ago
20 years ago
  1. --TEST--
  2. Bug #37276 (problems witch $_POST array)
  3. --SKIPIF--
  4. <?php if (php_sapi_name()=='cli') die('skip'); ?>
  5. --POST_RAW--
  6. Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
  7. -----------------------------20896060251896012921717172737
  8. Content-Disposition: form-data; name="submitter"
  9. testname
  10. -----------------------------20896060251896012921717172737
  11. Content-Disposition: form-data; name="pics"; filename="bug37276.txt"
  12. Content-Type: text/plain
  13. bug37276
  14. -----------------------------20896060251896012921717172737--
  15. --FILE--
  16. <?php
  17. var_dump($_FILES);
  18. var_dump($_POST);
  19. ?>
  20. --EXPECTF--
  21. array(1) {
  22. ["pics"]=>
  23. array(5) {
  24. ["name"]=>
  25. string(12) "bug37276.txt"
  26. ["type"]=>
  27. string(10) "text/plain"
  28. ["tmp_name"]=>
  29. string(%d) "%s"
  30. ["error"]=>
  31. int(0)
  32. ["size"]=>
  33. int(9)
  34. }
  35. }
  36. array(1) {
  37. ["submitter"]=>
  38. string(8) "testname"
  39. }