Download src/php/php-src/ext/session/tests/bug68063.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug68063.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug68063.phpt
-
curl -L -o bug68063.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug68063.phpt
652 Bytes
| --TEST-- | |
| Bug #68063 (Empty session IDs do still start sessions) | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --INI-- | |
| session.use_strict_mode=0 | |
| session.sid_length=40 | |
| session.sid_bits_per_character=4 | |
| --FILE-- | |
| // Empty session ID may happen by browser bugs | |
| // Could also be set with a cookie like "PHPSESSID=; path=/" | |
| session_id(''); | |
| // Start the session with empty string should result in new session ID | |
| var_dump(session_start()); | |
| // Returns newly created session ID | |
| var_dump(session_id()); | |
| --EXPECTF-- | |
| Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0 | |
| bool(true) | |
| string(40) "%s" | |