diff options
| author | Ben Fuhrmannek | 2016-03-07 23:29:21 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-03-07 23:29:21 +0100 |
| commit | a17a53b490bd5127a7ec67063a31b186e6956805 (patch) | |
| tree | f64e5e866940e47b6c054f4bbf9fa342377a7517 /tests/session/max_id_length_toolong.phpt | |
| parent | f2788a5543f72cdbe5fafd95ea7b37fab06745e3 (diff) | |
session support
Diffstat (limited to 'tests/session/max_id_length_toolong.phpt')
| -rw-r--r-- | tests/session/max_id_length_toolong.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/session/max_id_length_toolong.phpt b/tests/session/max_id_length_toolong.phpt new file mode 100644 index 0000000..a8ec4cc --- /dev/null +++ b/tests/session/max_id_length_toolong.phpt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | --TEST-- | ||
| 2 | session id too long | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.session.max_id_length=32 | ||
| 7 | session.hash_bits_per_character=4 | ||
| 8 | --FILE-- | ||
| 9 | <?php | ||
| 10 | session_id('123456789012345678901234567890123'); | ||
| 11 | session_start(); | ||
| 12 | echo strlen(session_id()); | ||
| 13 | ?> | ||
| 14 | --EXPECTF-- | ||
| 15 | 32 \ No newline at end of file | ||
