ID: 24562
Updated by: [email]sniperphp.net[/email]
Reported By: sagi at boom dot org dot il
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: RedHat 8.0 (Linux 2.4.20)
PHP Version: 4.3.3RC1
New Comment:

In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See [url]http://www.php.net/release_4_2_0.php[/url] 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.

....


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

[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:
[url]http://beep.boom.org.il/~sagi/php/servar.php?getvar=hello[/url]

The source is at:
[url]http://beep.boom.org.il/~sagi/php/servar.phps[/url]

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 [url]http://bugs.php.net/?id=24562&edit=1[/url]