diff options
Diffstat (limited to 'tests/cookie/crypt.key_empty.phpt')
| -rw-r--r-- | tests/cookie/crypt.key_empty.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/cookie/crypt.key_empty.phpt b/tests/cookie/crypt.key_empty.phpt new file mode 100644 index 0000000..1736575 --- /dev/null +++ b/tests/cookie/crypt.key_empty.phpt | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | --TEST-- | ||
| 2 | cookie encryption with empty key | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipif.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.cookie.encrypt=1 | ||
| 7 | suhosin.cookie.cryptkey= | ||
| 8 | suhosin.cookie.cryptua=0 | ||
| 9 | suhosin.cookie.cryptdocroot=0 | ||
| 10 | suhosin.cookie.cryptraddr=0 | ||
| 11 | suhosin.cookie.checkraddr=0 | ||
| 12 | ;suhosin.cookie.cryptlist= | ||
| 13 | ;suhosin.cookie.plainlist= | ||
| 14 | --COOKIE-- | ||
| 15 | a=b | ||
| 16 | --FILE-- | ||
| 17 | <?php | ||
| 18 | setcookie('foo', 'bar'); | ||
| 19 | $ch = preg_grep("/^Set-Cookie:/", headers_list()); | ||
| 20 | echo join("\n", array_values($ch)); | ||
| 21 | ?> | ||
| 22 | --EXPECTF-- | ||
| 23 | Set-Cookie: foo=Jq5FsTmo4aEWrLMKdoEeUuFxZ4IujCzrQjg-8Y-xphg. \ No newline at end of file | ||
