Download src/php/php-src/ext/session/tests/017.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/017.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/017.phpt
-
curl -L -o 017.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/017.phpt
449 Bytes
| --TEST-- | |
| setting $_SESSION before session_start() should not cause segfault | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --INI-- | |
| session.use_cookies=0 | |
| session.cache_limiter= | |
| session.serialize_handler=php | |
| session.save_handler=files | |
| --FILE-- | |
| error_reporting(E_ALL); | |
| class Kill { | |
| function __construct() { | |
| $_SESSION = []; | |
| session_start(); | |
| } | |
| } | |
| $k = new Kill(); | |
| print "I live\n"; | |
| --EXPECT-- | |
| I live | |