rfc1867_malicious_input.phpt 602 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. rfc1867 malicious input
  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="foo[]bar"; filename="file1.txt"
  12. Content-Type: text/plain-file1
  13. 1
  14. -----------------------------20896060251896012921717172737--
  15. --FILE--
  16. <?php
  17. var_dump($_FILES);
  18. var_dump($_POST);
  19. ?>
  20. --EXPECTF--
  21. array(0) {
  22. }
  23. array(0) {
  24. }