rfc1867_missing_boundary.phpt 525 B

123456789101112131415161718192021222324
  1. --TEST--
  2. rfc1867 missing boundary
  3. --INI--
  4. post_max_size=1024
  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
  9. -----------------------------20896060251896012921717172737
  10. Content-Disposition: form-data; name="foobar"
  11. 1
  12. -----------------------------20896060251896012921717172737--
  13. --FILE--
  14. <?php
  15. var_dump($_FILES);
  16. var_dump($_POST);
  17. ?>
  18. --EXPECTF--
  19. Warning: Missing boundary in multipart/form-data POST data in %s
  20. array(0) {
  21. }
  22. array(0) {
  23. }