#41679 [Opn->Bgs]: variables_order parameter is ignored
ID: 41679
Updated by: sniper@php.net
Reported By: denis_test at freemail dot ru
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: FreeBSD 6.2-RELEASE-p3
PHP Version: 5.2.3
New Comment:
You propably misunderstood how it works, it's the opposite:
http://www.php.net/manual/en/ini.core.php#ini.variables-order
"..for example if variables_order is set to "EGPCS", register_globals
is enabled, and both $_GET['action'] and $_POST['action'] are set, then
$action will contain the value of $_POST['action'] as P comes after
G.."
Previous Comments:
------------------------------------------------------------------------
[2007-06-14 08:12:27] denis_test at freemail dot ru
You say: "Env is parsed first, so no wonder it gets overwritten by GET
that is parsed second."
But I am sorry, my situation is direct opposite. As you can see GET is
overwritten by Env.
------------------------------------------------------------------------
[2007-06-13 12:28:30] denis_test at freemail dot ru
Description:
------------
Configuration:
variables_order EGPCS
register_globals On
Environment variable HOME is set to "/".
I start script with test.php?HOME=test
Reproduce code:
---------------
<?
echo $HOME;
?>
Expected result:
----------------
test
Actual result:
--------------
/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41679&edit=1
Thread (6 messages)