xref: /PHP-5.3/tests/basic/022.phpt (revision 2a2af1bf)
1--TEST--
2Cookies test#1
3--INI--
4max_input_vars=1000
5--COOKIE--
6cookie1=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
7--FILE--
8<?php
9var_dump($_COOKIE);
10?>
11--EXPECT--
12array(10) {
13  ["cookie1"]=>
14  string(6) "val1  "
15  ["cookie2"]=>
16  string(5) "val2 "
17  ["cookie3"]=>
18  string(6) "val 3."
19  ["cookie_4"]=>
20  string(10) " value 4 ;"
21  ["cookie__5"]=>
22  string(7) "  value"
23  ["cookie_6"]=>
24  string(3) "���"
25  ["cookie_7"]=>
26  string(0) ""
27  ["$cookie_8"]=>
28  string(0) ""
29  ["cookie-9"]=>
30  string(1) "1"
31  ["-_&_%_$cookie_10"]=>
32  string(2) "10"
33}
34