ID:               25171
 Comment by:       bvdb at asa dot de
 Reported By:      php at lansco dot de
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      4.3.3RC4
 New Comment:

I got the same error on my FreeBSD 4.8, PHP 4.3.3RC1 machine - and I
_did_ use '$_SERVER' - not the $SERVER that the author obviously
misspelled. 
Register_globals is turned ON - now any $HTTP_xx variable is _not_ set,
the respective $_SERVER['HTTP_*'] _is_.

May somebody with CVS access please change the status from 'bogus' to
'open'?


Previous Comments:
------------------------------------------------------------------------

[2003-08-20 04:56:40] [EMAIL PROTECTED]

$SERVER doesn't even exist... so how the h**k can that work?

------------------------------------------------------------------------

[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

Reply via email to