Download src/php/php-src/ext/session/tests/029.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/029.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/029.phpt
-
curl -L -o 029.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/029.phpt
576 Bytes
| --TEST-- | |
| session_decode(); should not segfault | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| <?php include('skipif.inc'); ?> | |
| --INI-- | |
| session.use_cookies=0 | |
| session.cache_limiter= | |
| --FILE-- | |
| <?php | |
| error_reporting(E_ALL); | |
| session_decode("garbage data and no session started"); | |
| session_decode("userid|s:5:\"mazen\";chatRoom|s:1:\"1\";"); | |
| print "I live\n"; | |
| ?> | |
| --EXPECTF-- | |
| Warning: session_decode(): Session data cannot be decoded when there is no active session in %s on line %d | |
| Warning: session_decode(): Session data cannot be decoded when there is no active session in %s on line %d | |
| I live | |