From a9fe1010d2837cb2a02ef70156718603c3693cbd Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 12 Mar 2008 20:24:45 +0000 Subject: [DOC] add request_order INI variable to control $_REQUEST content # if not set (default), variables_order still is used # request_order accepts G,P and C --- main/php_variables.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'main/php_variables.c') diff --git a/main/php_variables.c b/main/php_variables.c index 650b5f0219..274230fe41 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -835,7 +835,13 @@ static zend_bool php_auto_globals_create_request(char *name, uint name_len TSRML array_init(form_variables); INIT_PZVAL(form_variables); - for (p = PG(variables_order); p && *p; p++) { + if(PG(request_order) != NULL) { + p = PG(request_order); + } else { + p = PG(variables_order); + } + + for (; p && *p; p++) { switch (*p) { case 'g': case 'G': -- cgit v1.2.1