From:             php at lansco dot de
Operating system: Linux
PHP version:      4.3.3RC4
PHP Bug Type:     *General Issues
Bug description:  $HTTP_HOST and $SERVER["HTTP_HOST"] not always the same

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 bug report at http://bugs.php.net/?id=25171&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25171&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25171&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25171&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25171&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25171&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25171&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25171&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25171&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25171&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25171&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25171&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25171&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25171&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25171&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25171&r=gnused

Reply via email to