#25171 [Opn->Bgs]: $HTTP_HOST and $SERVER["HTTP_HOST"] not always the same

From: Date: Wed, 20 Aug 2003 09:56:41 +0000
Subject: #25171 [Opn->Bgs]: $HTTP_HOST and $SERVER["HTTP_HOST"] not always the same
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46299@lists.php.net to get a copy of this message
ID: 25171 Updated by: derick@php.net Reported By: php at lansco dot de -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Linux PHP Version: 4.3.3RC4 New Comment: $SERVER doesn't even exist... so how the h**k can that work? Previous Comments: ------------------------------------------------------------------------ [2003-08-20 04:54:48] php at lansco dot de Description: ------------ When register_globals=on is set the values of $HTTP_HOST and $SERVER["HTTP_HOST"] conatin not always the same. Sometimes $HTTP_HOST is empty while $SERVER["HTTP_HOST"] contains the expected value. After a reload it mostly works again. I cannot reproduce the error. This error also occurs with PHP-4.3.2 Reproduce code: --------------- print $HTTP_HOST."\n"; print $SERVER["HTTP_HOST"]."\n"; Expected result: ---------------- www.lansco.de www.lansco.de Actual result: -------------- www.lansco.de ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25171&edit=1

« previous php.bugs (#46299) next »