#24562 [Opn->Csd]: Server variables are invisible with register_globals on
| From: | sniper@php.net | Date: | Wed, 09 Jul 2003 15:05:14 +0000 |
| Subject: | #24562 [Opn->Csd]: Server variables are invisible with register_globals on | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43549@lists.php.net to get a copy of this message | ||
ID: 24562
Updated by: sniper@php.net
Reported By: sagi at boom dot org dot il
-Status: Open
+Status: Closed
Bug Type: Variables related
Operating System: RedHat 8.0 (Linux 2.4.20)
PHP Version: 4.3.3RC1
New Comment:
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
Then this must be fixed in latest stable CVS of PHP_4_3 branch since I
can't reproduce this.
Try the snapshot.
Previous Comments:
------------------------------------------------------------------------
[2003-07-09 09:58:09] sagi at boom dot org dot il
I know that, thats not the problem.
I upgraded from PHP4.3.2 where it works just fine.
Like I said, my register_globals IS turned *ON*.
See my example url. I even echo $getvar to make sure that its not a
problem with register globals and phpinfo() says that its on.
------------------------------------------------------------------------
[2003-07-09 09:54:25] sniper@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.
...
------------------------------------------------------------------------
[2003-07-09 08:55:34] sagi at boom dot org dot il
Description:
------------
After upgrading to PHP4.3.3RC1 server variables such as $REQUEST_URI
are only accessible using $_SERVER[var], with register_globals turned
ON.
You can see running example on my server:
http://beep.boom.org.il/~sagi/php/servar.php?getvar=hello
The source is at:
http://beep.boom.org.il/~sagi/php/servar.phps
Reproduce code:
---------------
print "\$REQUEST_URI is: $REQUEST_URI\n";
print "\$_SERVER[REQUEST_URI] is: $_SERVER[REQUEST_URI]\n";
Expected result:
----------------
$REQUEST_URI is: /~sagi/php/servar.php?getvar=hello
$_SERVER[REQUEST_URI] is: /~sagi/php/servar.php?getvar=hello
Actual result:
--------------
$REQUEST_URI is:
$_SERVER[REQUEST_URI] is: /~sagi/php/servar.php?getvar=hello
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24562&edit=1