From 3f049c9792a20f36ed912d8fd7e8d1302234a1e9 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 29 Jan 2007 03:53:04 +0000 Subject: [PATCH] Updated the variables_order description. This closes bug #36739 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228378 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/ini.xml | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/appendices/ini.xml b/appendices/ini.xml index 22ad06125d..531e39ce68 100644 --- a/appendices/ini.xml +++ b/appendices/ini.xml @@ -1,5 +1,5 @@ - - + + &php.ini; directives @@ -3098,16 +3098,39 @@ - Set the order of the EGPCS (Environment, GET, POST, Cookie, - Server) variable parsing. The default setting of this - directive is "EGPCS". Setting this to "GP", for example, - will cause PHP to completely ignore environment variables, - cookies and server variables, and to overwrite any GET - method variables with POST-method variables of the same name. + Sets the order of the EGPCS (Environment, + Get, Post, + Cookie, and Server) variable + parsing. For example, if variables_order + is set to "SP" then PHP will create the + &link.superglobals; $_SERVER and + $_POST, but not create + $_ENV, $_GET, and + $_COOKIE. Setting to "" means no + &link.superglobals; will be set. - See also register_globals. + If the deprecated + register_globals + directive is on (removed as of PHP 6), then variables_order also + configures the order the ENV, + GET, POST, + COOKIE and SERVER variables + are populated in global scope. So 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 in our example directive value. + + + The content and order of + $_REQUEST is also + affected by this directive. + +