From:             php at lnetz dot de
Operating system: Linux
PHP version:      4.3.3RC4
PHP Bug Type:     *General Issues
Bug description:  register_globals=on and $HTTP_HOST sometimes empty

Description:
------------
Sometimes $HTTP_HOST is empty while $_SERVER["HTTP_HOST"] contains the
expected value.

After a reload $HTTP_HOST mostly contains the expected value.

This error also occurs with PHP-4.3.2


Reproduce code:
---------------
print "1: ".$HTTP_HOST."\n";
print "2: ".$_SERVER["HTTP_HOST"]."\n";


Expected result:
----------------
1: test.com
2: test.com

Actual result:
--------------
1: 
2: test.com

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

Reply via email to