12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- --TEST--
- session rfc1867 disabled 2
- --INI--
- file_uploads=1
- upload_max_filesize=1024
- session.save_path=
- session.name=PHPSESSID
- session.use_strict_mode=0
- session.use_cookies=1
- session.use_only_cookies=0
- session.upload_progress.enabled=1
- session.upload_progress.cleanup=0
- session.upload_progress.prefix=upload_progress_
- session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
- session.upload_progress.freq=1%
- session.save_handler=files
- --EXTENSIONS--
- session
- --SKIPIF--
- <?php include('skipif.inc'); ?>
- --COOKIE--
- PHPSESSID=rfc1867-disabled-2
- --GET--
- PHPSESSID=rfc1867-disabled-2-get
- --POST_RAW--
- Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
- -----------------------------20896060251896012921717172737
- Content-Disposition: form-data; name="PHPSESSID"
- rfc1867-disabled-2-post
- -----------------------------20896060251896012921717172737
- Content-Disposition: form-data; name="file1"; filename="file1.txt"
- 1
- -----------------------------20896060251896012921717172737
- Content-Disposition: form-data; name="file2"; filename="file2.txt"
- 2
- -----------------------------20896060251896012921717172737--
- --FILE--
- <?php
- session_start();
- var_dump(session_id());
- var_dump($_FILES);
- var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
- session_destroy();
- ?>
- --EXPECTF--
- string(%d) "rfc1867-disabled-2"
- array(2) {
- ["file1"]=>
- array(6) {
- ["name"]=>
- string(9) "file1.txt"
- ["full_path"]=>
- string(9) "file1.txt"
- ["type"]=>
- string(0) ""
- ["tmp_name"]=>
- string(%d) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
- ["file2"]=>
- array(6) {
- ["name"]=>
- string(9) "file2.txt"
- ["full_path"]=>
- string(9) "file2.txt"
- ["type"]=>
- string(0) ""
- ["tmp_name"]=>
- string(%d) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
- }
- bool(false)
|