diff options
| author | Stefan Esser | 2014-02-15 12:13:19 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-15 12:13:19 +0100 |
| commit | 71c70de8df61ff1446efb1c168d3c2deccf58586 (patch) | |
| tree | c157eb11e83912026f2f4fbe72681d0c729ad92b /tests/session/crypt.key_empty.phpt | |
| parent | d556e8afdd33cbe89ed2f3f4e2d0700e495dadc9 (diff) | |
Add a bunch of session id / session encryption tests from Ben.
Diffstat (limited to 'tests/session/crypt.key_empty.phpt')
| -rw-r--r-- | tests/session/crypt.key_empty.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/session/crypt.key_empty.phpt b/tests/session/crypt.key_empty.phpt new file mode 100644 index 0000000..3e5da11 --- /dev/null +++ b/tests/session/crypt.key_empty.phpt | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | --TEST-- | ||
| 2 | session with encryption key empty | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.session.encrypt=On | ||
| 7 | suhosin.session.cryptkey= | ||
| 8 | suhosin.session.cryptua=Off | ||
| 9 | suhosin.session.cryptdocroot=Off | ||
| 10 | suhosin.session.cryptraddr=0 | ||
| 11 | suhosin.session.checkraddr=0 | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | include "sessionhandler.inc"; | ||
| 15 | session_test_start(); | ||
| 16 | $_SESSION['a'] = 'b'; | ||
| 17 | |||
| 18 | |||
| 19 | ?> | ||
| 20 | --EXPECTF-- | ||
| 21 | SESSION: RIuy2LSSd3_s3hhDCnN89bNWyCnhvNAO0YUq7OQKuJc. | ||
