#16052 [Opn->Bgs]: Some predefined variables allow GET overwrite
| From: | iliaa@php.net | Date: | Wed, 14 Aug 2002 23:16:21 +0000 |
| Subject: | #16052 [Opn->Bgs]: Some predefined variables allow GET overwrite | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16854@lists.php.net to get a copy of this message | ||
ID: 16052
Updated by: iliaa@php.net
Reported By: rlm@pricegrabber.com
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: RH 7.2
PHP Version: 4.1.2
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-03-14 05:17:09] daniel@php.net
No, it was my fault. I thought, session variables were primarily
available in $_SESSION, then written to the global context with
"variables order".
------------------------------------------------------------------------
[2002-03-14 02:41:00] rlm@pricegrabber.com
Funny, the docs say the "S" stands for "Server" variables:
http://www.php.net/manual/en/configuration.php#ini.register-globals
Furthermore, it doesn't make any comment whatsoever as to the nature of
the HTTP_* variables, though the predefined variables page claims some
are Apache, and some are environment.
http://www.php.net/manual/en/language.variables.predefined.php
In this instance, it says HTTP_ACCEPT_CHARSET and HTTP_REFERER are both
Apache (presumably, "S"erver, yes?) variables. So are you saying this
is a documentation bug?
------------------------------------------------------------------------
[2002-03-14 02:10:20] daniel@php.net
sorry, it's EGPCS by default.
------------------------------------------------------------------------
[2002-03-14 02:08:47] daniel@php.net
are you sure? HTTP_* variables are environment variables. the
variables_order is normally set to EGCPS (if not, change it) where "S"
is not "Server Variables" but "SESSION Variables". this behaviour thus
looks intentional - first HTTP_ACCEPT_CHARSET is set by the
environment, then you overwrite it with a GET.
------------------------------------------------------------------------
[2002-03-13 18:56:56] rlm@pricegrabber.com
Incidentally, our variables_order flag is set to "GPCS".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16052
--
Edit this bug report at http://bugs.php.net/?id=16052&edit=1