diff options
Diffstat (limited to 'tests/cookie/crypt.no_encryption.phpt')
| -rw-r--r-- | tests/cookie/crypt.no_encryption.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cookie/crypt.no_encryption.phpt b/tests/cookie/crypt.no_encryption.phpt new file mode 100644 index 0000000..095ce5f --- /dev/null +++ b/tests/cookie/crypt.no_encryption.phpt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --TEST-- | ||
| 2 | cookie without encryption | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipif.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.cookie.encrypt=0 | ||
| 7 | --COOKIE-- | ||
| 8 | a=b | ||
| 9 | --FILE-- | ||
| 10 | <?php | ||
| 11 | setcookie('foo', 'bar'); | ||
| 12 | $ch = preg_grep("/^Set-Cookie:/", headers_list()); | ||
| 13 | echo join("\n", array_values($ch)); | ||
| 14 | ?> | ||
| 15 | --EXPECTF-- | ||
| 16 | Set-Cookie: foo=bar \ No newline at end of file | ||
