php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66981 HTTP_HOST sould NOT have the port number
Submitted: 2014-03-29 16:29 UTC Modified: 2014-03-29 16:50 UTC
From: gontijo dot douglas at gmail dot com Assigned:
Status: Closed Package: Built-in web server
PHP Version: 5.5.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gontijo dot douglas at gmail dot com
New email:
PHP Version: OS:

 

 [2014-03-29 16:29 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-29 16:50 UTC] gontijo dot douglas at gmail dot com
-Status: Open +Status: Closed
 [2014-03-29 16:50 UTC] gontijo dot douglas at gmail dot com
My bad. The ports should be added by the sent headers.

Sorry.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC