#25172 [Opn->Fbk]: register_globals=on and $HTTP_HOST sometimes empty

From: Date: Thu, 21 Aug 2003 13:29:31 +0000
Subject: #25172 [Opn->Fbk]: register_globals=on and $HTTP_HOST sometimes empty
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46421@lists.php.net to get a copy of this message
 ID:               25172
 Updated by:       sniper@php.net
 Reported By:      php at lansco dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      4.3.2
 New Comment:

What was the configure line used to configure Apache?
(And PHP too)



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

[2003-08-21 08:25:51] php at lansco dot de

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev

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

[2003-08-21 08:18:11] sniper@php.net

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?


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

[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz
the error also
occurs :(

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

[2003-08-20 17:31:39] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2003-08-20 05:03:43] php at lansco dot de

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 this bug report at http://bugs.php.net/?id=25172&edit=1



Thread (19 messages)

« previous php.bugs (#46421) next »