Download src/php/php-src/ext/session/tests/bug73100.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug73100.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug73100.phpt
-
curl -L -o bug73100.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug73100.phpt
646 Bytes
| --TEST-- | |
| Bug #73100 (session_destroy null dereference in ps_files_path_create) | |
| --EXTENSIONS-- | |
| session | |
| --INI-- | |
| session.save_path= | |
| session.save_handler=files | |
| --FILE-- | |
| ob_start(); | |
| var_dump(session_start()); | |
| session_module_name("user"); | |
| var_dump(session_destroy()); | |
| try { | |
| session_module_name("user"); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage() . \PHP_EOL; | |
| } | |
| ===DONE=== | |
| --EXPECTF-- | |
| bool(true) | |
| Warning: session_module_name(): Session save handler module cannot be changed when a session is active (started from %s on line %d) in %s on line %d | |
| bool(true) | |
| session_module_name(): Argument #1 ($module) cannot be "user" | |
| ===DONE=== | |