Download src/php/php-src/ext/session/tests/015.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/015.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/015.phpt
-
curl -L -o 015.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/015.phpt
827 Bytes
| --TEST-- | |
| use_trans_sid should not affect SID | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --INI-- | |
| session.use_trans_sid=1 | |
| session.use_cookies=0 | |
| session.use_only_cookies=0 | |
| session.use_strict_mode=0 | |
| session.cache_limiter= | |
| arg_separator.output=& | |
| session.name=PHPSESSID | |
| session.serialize_handler=php | |
| session.save_handler=files | |
| --FILE-- | |
| error_reporting(E_ALL); | |
| session_id("test015"); | |
| session_start(); | |
| $sid = SID; | |
| <a href="/link?$sid "> | |
| session_destroy(); | |
| --EXPECTF-- | |
| Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0 | |
| Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0 | |
| Deprecated: Constant SID is deprecated in %s on line 6 | |
| <a href="/link?PHPSESSID=test015&PHPSESSID=test015"> | |