Bug #66981 [Opn->Csd]: HTTP_HOST sould NOT have the port number
Edit report at https://bugs.php.net/bug.php?id=66981&edit=1
ID: 66981
User updated by: gontijo dot douglas at gmail dot com
Reported by: gontijo dot douglas at gmail dot com
Summary: HTTP_HOST sould NOT have the port number
-Status: Open
+Status: Closed
Type: Bug
Package: Built-in web server
Operating System: Linux
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
My bad. The ports should be added by the sent headers.
Sorry.
Previous Comments:
------------------------------------------------------------------------
[2014-03-29 16:29:11] gontijo dot douglas at gmail dot com
Description:
------------
$_SERVER['HTTP_HOST'] value sould NOT have the port number added.
Test script:
---------------
<?php
echo $_SERVER['HTTP_HOST'];
// Expects localhost
// Outputs localhost:4035
// php -S 127.0.0.1:4035
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66981&edit=1
Thread (2 messages)