Annotation of embedaddon/php/tests/basic/022.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Cookies test#1
3: --COOKIE--
4: cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10
5: --FILE--
6: <?php
7: var_dump($_COOKIE);
8: ?>
9: --EXPECT--
10: array(10) {
11: ["cookie1"]=>
12: string(6) "val1 "
13: ["cookie2"]=>
14: string(5) "val2 "
15: ["cookie3"]=>
16: string(6) "val 3."
17: ["cookie_4"]=>
18: string(10) " value 4 ;"
19: ["cookie__5"]=>
20: string(7) " value"
21: ["cookie_6"]=>
22: string(3) "þæö"
23: ["cookie_7"]=>
24: string(0) ""
25: ["$cookie_8"]=>
26: string(0) ""
27: ["cookie-9"]=>
28: string(1) "1"
29: ["-_&_%_$cookie_10"]=>
30: string(2) "10"
31: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>