rfc1867_boundary_1.phpt 527 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. rfc1867 boundary 1
  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; boundary="------------------------------------foobar"
  9. --------------------------------------foobar
  10. Content-Disposition: form-data; name="foobar"
  11. 1
  12. --------------------------------------foobar--
  13. --FILE--
  14. <?php
  15. var_dump($_FILES);
  16. var_dump($_POST);
  17. ?>
  18. --EXPECTF--
  19. array(0) {
  20. }
  21. array(1) {
  22. [%u|b%"foobar"]=>
  23. %unicode|string%(1) "1"
  24. }