diff options
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 | ||
