summaryrefslogtreecommitdiff
path: root/src/tests/encrypt_cookies4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/encrypt_cookies4.phpt')
-rw-r--r--src/tests/encrypt_cookies4.phpt28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/tests/encrypt_cookies4.phpt b/src/tests/encrypt_cookies4.phpt
deleted file mode 100644
index 04d4076..0000000
--- a/src/tests/encrypt_cookies4.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
1--TEST--
2Cookie encryption in ipv6
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_encrypted_cookies.ini
7--COOKIE--
8--ENV--
9return <<<EOF
10REMOTE_ADDR=2001:0db8:0000:0000:0000:fe00:0042:8329
11HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36
12HTTPS=1
13EOF;
14--FILE--
15<?php
16setcookie("super_cookie", "super_value");
17setcookie("awful_cookie", "awful_value");
18setcookie("nice_cookie", "nice_value", 1, "1", "1", true, true);
19$ret = setcookie("", "Cookie with no name", 1, "1", "1", true, true);
20if ($ret == TRUE) {
21 echo "fail :/";
22}
23var_dump($_COOKIE);
24?>
25--EXPECTF--
26Warning: Cookie names must not be empty in %a/tests/encrypt_cookies4.php on line %d
27array(0) {
28}