rfc1867_no_name.phpt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. --TEST--
  2. session rfc1867 no name
  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. session.save_path=
  9. session.name=PHPSESSID
  10. session.use_strict_mode=0
  11. session.use_cookies=1
  12. session.use_only_cookies=0
  13. session.upload_progress.enabled=1
  14. session.upload_progress.cleanup=0
  15. session.upload_progress.prefix=upload_progress_
  16. session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
  17. session.upload_progress.freq=1%
  18. --SKIPIF--
  19. <?php include('skipif.inc'); ?>
  20. --COOKIE--
  21. PHPSESSID=rfc1867-tests
  22. --GET--
  23. PHPSESSID=rfc1867-tests-get
  24. --POST_RAW--
  25. Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
  26. -----------------------------20896060251896012921717172737
  27. Content-Disposition: form-data; name="PHPSESSID"
  28. rfc1867-tests-post
  29. -----------------------------20896060251896012921717172737
  30. Content-Disposition: form-data; name="file1"; filename="file1.txt"
  31. 1
  32. -----------------------------20896060251896012921717172737
  33. Content-Disposition: form-data; name="file2"; filename="file2.txt"
  34. 2
  35. -----------------------------20896060251896012921717172737--
  36. --FILE--
  37. <?php
  38. session_start();
  39. var_dump(session_id());
  40. var_dump($_FILES);
  41. var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
  42. session_destroy();
  43. ?>
  44. --EXPECTF--
  45. string(%d) "rfc1867-tests"
  46. array(2) {
  47. [%u|b%"file1"]=>
  48. array(5) {
  49. [%u|b%"name"]=>
  50. %string|unicode%(9) "file1.txt"
  51. [%u|b%"type"]=>
  52. %string|unicode%(0) ""
  53. [%u|b%"tmp_name"]=>
  54. %string|unicode%(%d) "%s"
  55. [%u|b%"error"]=>
  56. int(0)
  57. [%u|b%"size"]=>
  58. int(1)
  59. }
  60. [%u|b%"file2"]=>
  61. array(5) {
  62. [%u|b%"name"]=>
  63. %string|unicode%(9) "file2.txt"
  64. [%u|b%"type"]=>
  65. %string|unicode%(0) ""
  66. [%u|b%"tmp_name"]=>
  67. %string|unicode%(%d) "%s"
  68. [%u|b%"error"]=>
  69. int(0)
  70. [%u|b%"size"]=>
  71. int(1)
  72. }
  73. }
  74. NULL