#24271 [Opn->Csd]: register_globals broken, not registering env or GET variables ($REQUEST_URI)
| From: | iliaa@php.net | Date: | Fri, 20 Jun 2003 18:17:37 +0000 |
| Subject: | #24271 [Opn->Csd]: register_globals broken, not registering env or GET variables ($REQUEST_URI) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42283@lists.php.net to get a copy of this message | ||
ID: 24271
Updated by: iliaa@php.net
Reported By: danbeck-php at dealnews dot com
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: RH 7.1
PHP Version: 4.3.3RC1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-06-20 13:14:42] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24271&edit=1