#25749 [Csd->Bgs]: PHP globals not defined
| From: | moriyoshi@php.net | Date: | Fri, 03 Oct 2003 19:52:23 +0000 |
| Subject: | #25749 [Csd->Bgs]: PHP globals not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48518@lists.php.net to get a copy of this message | ||
ID: 25749
Updated by: moriyoshi@php.net
Reported By: linjiang dot ma at myrealbox dot com
-Status: Closed
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux Redhat 7.0
PHP Version: 4.3.3
New Comment:
Leave the status bogus because this is not a real bug.
Previous Comments:
------------------------------------------------------------------------
[2003-10-03 15:50:10] linjiang dot ma at myrealbox dot com
Oh, i c. that is the problem. it is fine now, thanks
------------------------------------------------------------------------
[2003-10-03 15:33:14] wez@php.net
Try including the SERVER variable (S) in variables_order.
variables_order="EGPCS"
(RTFM!)
------------------------------------------------------------------------
[2003-10-03 15:21:57] linjiang dot ma at myrealbox dot com
Thanks for replying.
I don't think the register_global in php.ini would have an effect on
the existence of $_SERVER variables. It will affect the definition of
$PHP_SELF. but not $_SERVER...
variables_order in php.ini is currently set to 'GPC'. It should not
have much to do with the existence of such variable.
Please check the page, $_SERVER[] is not even defined there in PHP
variables.
------------------------------------------------------------------------
[2003-10-03 15:07:04] wez@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
And also check variables_order php.ini directive.
------------------------------------------------------------------------
[2003-10-03 14:52:34] linjiang dot ma at myrealbox dot com
Description:
------------
Hi,
I have an server running Apache 1.3.28, mod_perl, mod_ssl, mod_php4
(4.3.3) with mysql.
It looks to me that for this 4.3.3 installation. many PHP predefined
variables are not defined.
the only defined PHP variables I can see are _REQUEST and _COOKIE.
The testing page is at https://www.myplutus.com/test.php.
TIA,
-martin
Reproduce code:
---------------
https://www.myplutus.com/test.php
Expected result:
----------------
under PHP Variable sections, you should see
_SERVER _SESSION _ENV PHP variables.
Actual result:
--------------
only _REQUEST and _COOKIE are shown.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25749&edit=1