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
 [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: Fri Apr 26 08:01:30 2024 UTC