xref: /PHP-7.4/ext/standard/tests/bug81727.phpt (revision 0611be4e)
1--TEST--
2Bug #81727: $_COOKIE name starting with ..Host/..Secure should be discarded
3--COOKIE--
4..Host-test=ignore; __Host-test=correct; . Secure-test=ignore; . Elephpant=Awesome;
5--FILE--
6<?php
7var_dump($_COOKIE);
8?>
9--EXPECT--
10array(2) {
11  ["__Host-test"]=>
12  string(7) "correct"
13  ["__Elephpant"]=>
14  string(7) "Awesome"
15}
16