xref: /PHP-8.4/tests/basic/023.phpt (revision 95e1a415)
1--TEST--
2Cookies test#2
3--INI--
4max_input_vars=1000
5filter.default=unsafe_raw
6--COOKIE--
7c o o k i e=value; c o o k i e= v a l u e ;;c%20o+o k+i%20e=v;name="value","value",UEhQIQ==;UEhQIQ==foo
8--FILE--
9<?php
10var_dump($_COOKIE);
11?>
12--EXPECT--
13array(4) {
14  ["c_o_o_k_i_e"]=>
15  string(5) "value"
16  ["c%20o+o_k+i%20e"]=>
17  string(1) "v"
18  ["name"]=>
19  string(24) ""value","value",UEhQIQ=="
20  ["UEhQIQ"]=>
21  string(4) "=foo"
22}
23