Download src/php/php-src/ext/session/tests/bug66481.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug66481.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug66481.phpt
-
curl -L -o bug66481.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug66481.phpt
486 Bytes
| --TEST-- | |
| Bug #66481: Calls to session_name() segfault when session.name is null. | |
| --INI-- | |
| session.name= | |
| error_log= | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --FILE-- | |
| ob_start(); | |
| var_dump(session_name("foo")); | |
| var_dump(session_name("bar")); | |
| --EXPECT-- | |
| Warning: PHP Startup: session.name "" must not be numeric, empty, contain null bytes or any of the following characters "=,;.[ \t\r\n\013\014" in Unknown on line 0 | |
| string(9) "PHPSESSID" | |
| string(3) "foo" | |