Download src/php/php-src/ext/session/tests/012.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/012.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/012.phpt
-
curl -L -o 012.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/012.phpt
605 Bytes
| --TEST-- | |
| registering $_SESSION should not segfault | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --INI-- | |
| session.use_cookies=0 | |
| session.use_strict_mode=0 | |
| session.cache_limiter= | |
| session.serialize_handler=php | |
| session.save_handler=files | |
| --FILE-- | |
| error_reporting(E_ALL); | |
| ### Absurd example, value of $_SESSION does not matter | |
| session_id("test012"); | |
| session_start(); | |
| $_SESSION["_SESSION"] = Array(); | |
| $_SESSION = "kk"; | |
| session_write_close(); | |
| ### Restart to test for $_SESSION brokenness | |
| session_start(); | |
| $_SESSION = "kk"; | |
| session_destroy(); | |
| print "I live\n"; | |
| --EXPECT-- | |
| I live | |