Bug #1911: Cookies with '.' in it's name have it changed to '_'
| From: | jneves at rnl dot ist dot utl dot pt | Date: | Wed, 28 Jul 1999 22:21:55 +0000 |
| Subject: | Bug #1911: Cookies with '.' in it's name have it changed to '_' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9293@lists.php.net to get a copy of this message | ||
From: jneves@rnl.ist.utl.pt
Operating system: Linux (probably any)
PHP version: 3.0.11
PHP Bug Type: Documentation problem
Bug description: Cookies with '.' in it's name have it changed to '_'
Script that shows the problem. I'm not sure this is a cookie parsing problem or a lack of
documentation one.
<?
$a = strtr("http://puzzle.dhis.org/",
".", ".");
setcookie($a, 'copyleft.gif');
?>
<html>
<head><title><? echo "$a - $Teste" ?></title></head>
<body>
<?
echo "Referer = $HTTP_REFERER $a";
echo '<br> Cookie =';
echo ${$a};
echo " or ";
echo $HTTP_COOKIE_VARS[$a];
echo '<p>';
for (reset($HTTP_COOKIE_VARS); $key = key($HTTP_COOKIE_VARS); next($HTTP_COOKIE
echo "HTTP_COOKIE_VARS[$key] = ".$HTTP_COOKIE_VARS[$key]."\n";
}
?>
</body>
</html>