#43632 [NEW]: HTTP_HOST and IPv6 address
| From: | u7vd8gw2725h59sm at yopmail dot com | Date: | Wed, 19 Dec 2007 00:40:30 +0000 |
| Subject: | #43632 [NEW]: HTTP_HOST and IPv6 address | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-120750@lists.php.net to get a copy of this message | ||
From: u7vd8gw2725h59sm at yopmail dot com
Operating system: Irrelevant
PHP version: 5.2.5
PHP Bug Type: Variables related
Bug description: HTTP_HOST and IPv6 address
Description:
------------
With an IPv6 address, HTTP_HOST should be for example [::1]:8080 and not
::1:8080
For example IPv6 URI:
http://[::1]:8080/
http://user:password[::1]:8081/
http://[::1]:80/dir/file
http://[::1]:8000/dir/file?q=query
Reproduce code:
---------------
<?php echo $_SERVER["HTTP_HOST"]; ?>
Expected result:
----------------
[::1]:8080
Actual result:
--------------
::1:8080
--
Edit bug report at http://bugs.php.net/?id=43632&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43632&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43632&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43632&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43632&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43632&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43632&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43632&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43632&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43632&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43632&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43632&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43632&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43632&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43632&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43632&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43632&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43632&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43632&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43632&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43632&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43632&r=mysqlcfg