mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
[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
This commit is contained in:
parent
5076296d8c
commit
a9fe1010d2
5 changed files with 22 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue