php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24271 register_globals broken, not registering env or GET variables ($REQUEST_URI)
Submitted: 2003-06-20 13:14 UTC Modified: 2003-06-20 13:17 UTC
From: danbeck-php at dealnews dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.3RC1 OS: RH 7.1
Private report: No CVE-ID: None
 [2003-06-20 13:14 UTC] danbeck-php at dealnews dot com
Description:
------------
I have both the register globals and track vars options turned on and verified both through phpinfo() output.

Global GET or apache environment variables are not accessable, except through the $_SERVER or $_GET arrays.  POST variables might also be inaccessable, but I have not tested them.

Backing down from 4.3.3RC1 to 4.3.2, without any configuration changes what-so-ever, resolved the issue.

Reproduce code:
---------------
<?
echo $_SERVER['HTTP_USER_AGENT'];

echo $REQUEST_URI;
?>


Expected result:
----------------
The first echo statement should echo the user agent string and the second echo statement should echo the URI requested by the browser.



Actual result:
--------------
The first echo statement echos the user agent string.  The second echo statement echos nothing.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-20 13:17 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 19 12:00:01 2025 UTC