diff options
| author | Stefan Esser | 2014-02-18 14:52:12 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-18 14:52:12 +0100 |
| commit | 6fef70730793eccc4943bca48c47439cd19b213e (patch) | |
| tree | 832e88b95420d99253cf61480df810c548992215 /tests/cookie/crypt.invalid.phpt | |
| parent | 80e2f83cff1750937ba02916d2326ce75e09ef4c (diff) | |
Some tests for the cookie encryption feature from Ben
Diffstat (limited to 'tests/cookie/crypt.invalid.phpt')
| -rw-r--r-- | tests/cookie/crypt.invalid.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/cookie/crypt.invalid.phpt b/tests/cookie/crypt.invalid.phpt new file mode 100644 index 0000000..b1d11dd --- /dev/null +++ b/tests/cookie/crypt.invalid.phpt | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | --TEST-- | ||
| 2 | cookie encryption with invalid cookie | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipif.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.cookie.encrypt=1 | ||
| 7 | suhosin.cookie.cryptkey= | ||
| 8 | suhosin.cookie.cryptua=Off | ||
| 9 | suhosin.cookie.cryptdocroot=Off | ||
| 10 | suhosin.cookie.cryptraddr=0 | ||
| 11 | suhosin.cookie.checkraddr=0 | ||
| 12 | ;suhosin.cookie.cryptlist= | ||
| 13 | ;suhosin.cookie.plainlist= | ||
| 14 | --ENV-- | ||
| 15 | return <<<END | ||
| 16 | REMOTE_ADDR=127.0.0.1 | ||
| 17 | END; | ||
| 18 | --COOKIE-- | ||
| 19 | foo=test | ||
| 20 | --FILE-- | ||
| 21 | <?php | ||
| 22 | var_dump($_COOKIE); | ||
| 23 | ?> | ||
| 24 | --EXPECTF-- | ||
| 25 | array(0) { | ||
| 26 | } \ No newline at end of file | ||
