#43632 [Opn->Fbk]: HTTP_HOST and IPv6 address
| From: | jani@php.net | Date: | Sat, 22 Dec 2007 17:18:46 +0000 |
| Subject: | #43632 [Opn->Fbk]: HTTP_HOST and IPv6 address | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120818@lists.php.net to get a copy of this message | ||
ID: 43632
Updated by: jani@php.net
Reported By: u7vd8gw2725h59sm at yopmail dot com
-Status: Open
+Status: Feedback
-Bug Type: Variables related
+Bug Type: *General Issues
Operating System: Irrelevant
PHP Version: 5.2.5
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-12-19 00:40:30] u7vd8gw2725h59sm at yopmail dot com
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 this bug report at http://bugs.php.net/?id=43632&edit=1