Bug #66981 [Opn->Csd]: HTTP_HOST sould NOT have the port number

From: Date: Sat, 29 Mar 2014 16:50:44 +0000
Subject: Bug #66981 [Opn->Csd]: HTTP_HOST sould NOT have the port number
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184960@lists.php.net to get a copy of this message
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)

« previous php.bugs (#184960) next »