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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
1 + 22 = ?
Subscribe to this entry?

 
 [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: Sun Apr 28 16:01:31 2024 UTC