bug81727.phpt 326 B

123456789101112131415
  1. --TEST--
  2. Bug #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
  7. var_dump($_COOKIE);
  8. ?>
  9. --EXPECT--
  10. array(2) {
  11. ["__Host-test"]=>
  12. string(7) "correct"
  13. ["__Elephpant"]=>
  14. string(7) "Awesome"
  15. }