summaryrefslogtreecommitdiff
path: root/tests/cookie/crypt.no_encryption.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-02-24 00:36:35 +0100
committerBen Fuhrmannek2016-02-24 00:36:35 +0100
commit346455c6b5716c8ce095235428614e15c0adf13e (patch)
treeaaa648869e88287ed34c6d36cc06474d062b4b32 /tests/cookie/crypt.no_encryption.phpt
parent35b7c9a0e3f8a0daf1718a8ba9889a2aec24dc84 (diff)
cookie encryption
Diffstat (limited to 'tests/cookie/crypt.no_encryption.phpt')
-rw-r--r--tests/cookie/crypt.no_encryption.phpt16
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--
2cookie without encryption
3--SKIPIF--
4<?php include "../skipif.inc"; ?>
5--INI--
6suhosin.cookie.encrypt=0
7--COOKIE--
8a=b
9--FILE--
10<?php
11setcookie('foo', 'bar');
12$ch = preg_grep("/^Set-Cookie:/", headers_list());
13echo join("\n", array_values($ch));
14?>
15--EXPECTF--
16Set-Cookie: foo=bar \ No newline at end of file