Download src/php/php-src/ext/session/tests/bug73273.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug73273.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug73273.phpt
-
curl -L -o bug73273.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug73273.phpt
328 Bytes
| --TEST-- | |
| Bug #73273: session_unset() empties values from all variables in which is $_session stored | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --FILE-- | |
| session_start(); | |
| $_SESSION['test'] = true; | |
| $var = $_SESSION; | |
| session_unset(); | |
| var_dump($var); | |
| --EXPECT-- | |
| array(1) { | |
| ["test"]=> | |
| bool(true) | |
| } | |