diff options
| author | Stefan Esser | 2014-02-18 11:27:18 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-18 11:27:18 +0100 |
| commit | 4feb1476377e8bd355c26a0a1043b89d33015027 (patch) | |
| tree | f29cb6c9867604a0f490ad362467745c18cf43f7 /tests/session | |
| parent | f18caf315ce8babb842ad09f416918c39567ae27 (diff) | |
Fix test cases for PHP installations that have a different session.hash_bits_per_character default
Diffstat (limited to 'tests/session')
| -rw-r--r-- | tests/session/PHPSESSID_max_id_length_ok.phpt | 1 | ||||
| -rw-r--r-- | tests/session/PHPSESSID_max_id_length_toolong.phpt | 1 | ||||
| -rw-r--r-- | tests/session/max_id_length_ok.phpt | 1 | ||||
| -rw-r--r-- | tests/session/max_id_length_toolong.phpt | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/session/PHPSESSID_max_id_length_ok.phpt b/tests/session/PHPSESSID_max_id_length_ok.phpt index 0bb90bc..2673d08 100644 --- a/tests/session/PHPSESSID_max_id_length_ok.phpt +++ b/tests/session/PHPSESSID_max_id_length_ok.phpt | |||
| @@ -4,6 +4,7 @@ PHPSESSID session id not too long | |||
| 4 | <?php include "../skipifcli.inc"; ?> | 4 | <?php include "../skipifcli.inc"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | suhosin.session.max_id_length=32 | 6 | suhosin.session.max_id_length=32 |
| 7 | session.hash_bits_per_character=4 | ||
| 7 | --COOKIE-- | 8 | --COOKIE-- |
| 8 | PHPSESSID=12345678901234567890123456789012; | 9 | PHPSESSID=12345678901234567890123456789012; |
| 9 | --FILE-- | 10 | --FILE-- |
diff --git a/tests/session/PHPSESSID_max_id_length_toolong.phpt b/tests/session/PHPSESSID_max_id_length_toolong.phpt index e6667b1..6bd71fb 100644 --- a/tests/session/PHPSESSID_max_id_length_toolong.phpt +++ b/tests/session/PHPSESSID_max_id_length_toolong.phpt | |||
| @@ -4,6 +4,7 @@ PHPSESSID session id too long | |||
| 4 | <?php include "../skipifcli.inc"; ?> | 4 | <?php include "../skipifcli.inc"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | suhosin.session.max_id_length=32 | 6 | suhosin.session.max_id_length=32 |
| 7 | session.hash_bits_per_character=4 | ||
| 7 | --COOKIE-- | 8 | --COOKIE-- |
| 8 | PHPSESSID=123456789012345678901234567890123; | 9 | PHPSESSID=123456789012345678901234567890123; |
| 9 | --FILE-- | 10 | --FILE-- |
diff --git a/tests/session/max_id_length_ok.phpt b/tests/session/max_id_length_ok.phpt index 9f91c94..1402cce 100644 --- a/tests/session/max_id_length_ok.phpt +++ b/tests/session/max_id_length_ok.phpt | |||
| @@ -4,6 +4,7 @@ session id not too long | |||
| 4 | <?php include "../skipifcli.inc"; ?> | 4 | <?php include "../skipifcli.inc"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | suhosin.session.max_id_length=32 | 6 | suhosin.session.max_id_length=32 |
| 7 | session.hash_bits_per_character=4 | ||
| 7 | --FILE-- | 8 | --FILE-- |
| 8 | <?php | 9 | <?php |
| 9 | session_id('12345678901234567890123456789012'); | 10 | session_id('12345678901234567890123456789012'); |
diff --git a/tests/session/max_id_length_toolong.phpt b/tests/session/max_id_length_toolong.phpt index 0e16621..a8ec4cc 100644 --- a/tests/session/max_id_length_toolong.phpt +++ b/tests/session/max_id_length_toolong.phpt | |||
| @@ -4,6 +4,7 @@ session id too long | |||
| 4 | <?php include "../skipifcli.inc"; ?> | 4 | <?php include "../skipifcli.inc"; ?> |
| 5 | --INI-- | 5 | --INI-- |
| 6 | suhosin.session.max_id_length=32 | 6 | suhosin.session.max_id_length=32 |
| 7 | session.hash_bits_per_character=4 | ||
| 7 | --FILE-- | 8 | --FILE-- |
| 8 | <?php | 9 | <?php |
| 9 | session_id('123456789012345678901234567890123'); | 10 | session_id('123456789012345678901234567890123'); |
