From: [EMAIL PROTECTED]
Operating system: All
PHP version: 4.3.0-pre2
PHP Bug Type: Apache related
Bug description: Unable to set a cookie with _ in the host
If you create a host with an underscore in the domain you are unable to set
cookie. I created one with the name site_v1.domain.com and any attempt to
set a cookie was unsuccessful, I then used the IP address instead and it
worked fine.
I then tested this on a different system with the following code.
<?php
setcookie('name', 'value', time()+3600);
echo '<pre>';
print_r($_COOKIE);
echo '</pre>';
?>
Yes i did reload the page. I've tried php 4.2.3 and 4.3.0-pre2
--
Edit bug report at http://bugs.php.net/?id=20271&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20271&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20271&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20271&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20271&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20271&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20271&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20271&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20271&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20271&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20271&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20271&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20271&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20271&r=isapi