rfc1867_file_upload_disabled.phpt 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. rfc1867 file_upload disabled
  3. --INI--
  4. file_uploads=0
  5. error_reporting=E_ALL&~E_NOTICE
  6. comment=debug builds show some additional E_NOTICE errors
  7. --POST_RAW--
  8. Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
  9. -----------------------------20896060251896012921717172737
  10. Content-Disposition: form-data; name="foo"
  11. bar
  12. -----------------------------20896060251896012921717172737
  13. Content-Disposition: form-data; name="file1"; filename="file1.txt"
  14. Content-Type: text/plain-file1
  15. 1
  16. -----------------------------20896060251896012921717172737
  17. Content-Disposition: form-data; name="bar"
  18. foo
  19. -----------------------------20896060251896012921717172737--
  20. --FILE--
  21. <?php
  22. var_dump($_FILES);
  23. var_dump($_POST);
  24. ?>
  25. --EXPECTF--
  26. array(0) {
  27. }
  28. array(2) {
  29. [%u|b%"foo"]=>
  30. %unicode|string%(3) "bar"
  31. [%u|b%"bar"]=>
  32. %unicode|string%(3) "foo"
  33. }