$ _ Why is REQUEST empty? My php. ini settings are as follows:
Variables_order = "EGPCS"
Request_order =
If request_order is left empty, will the variables_order value be used?
Reply to discussion (solution)
I don't know how you requested it. I will describe your request process.
Request_order = GP
It's not the default get and post. why is it empty?
I don't know how you requested it. I will describe your request process.
Xxx. php? Aaa = bbb
When request_order is null, $ _ REQUEST is an empty array,
$ _ REQUEST only contains content when request_order = "GP.
I don't know how you requested it. I will describe your request process.
Xxx. php? Aaa = bbb
When request_order is null, $ _ REQUEST is an empty array,
$ _ REQUEST only contains content when request_order = "GP.
This is correct. according to the explanation of request_order, it sets the setting and overwrite sequence of the $ _ REQUEST variable. If it is null, that is, $ _ REQUEST does not contain the P (Post), G (Get), and C (Cookie) variables, it is null.
I don't know how you requested it. I will describe your request process.
Xxx. php? Aaa = bbb
When request_order is null, $ _ REQUEST is an empty array,
$ _ REQUEST only contains content when request_order = "GP.
This is correct. according to the explanation of request_order, it sets the setting and overwrite sequence of the $ _ REQUEST variable. If it is null, that is, $ _ REQUEST does not contain the P (Post), G (Get), and C (Cookie) variables, it is null.
What does the following sentence of php mean:
If this directive is not set, variables_order is used for $_REQUEST contents.
Doesn't it mean that the value of variables_order will be used if it is left empty?
Also, php. ini says:
626 ; This directive determines which super global data (G,P,C,E & S) should 627 ; be registered into the super global array REQUEST. If so, it also determines 628 ; the order in which that data is registered. The values for this directive are 629 ; specified in the same manner as the variables_order directive, EXCEPT one. 630 ; Leaving this value empty will cause PHP to use the value set in the 631 ; variables_order directive. It does not mean it will leave the super globals 632 ; array REQUEST empty. 633 ; Default Value: None 634 ; Development Value: "GP" 635 ; Production Value: "GP" 636 ; http://php.net/request-order 637 request_order = "GP"
Do I understand it wrong? My English skills are relatively poor...
I don't know how you requested it. I will describe your request process.
Xxx. php? Aaa = bbb
When request_order is null, $ _ REQUEST is an empty array,
$ _ REQUEST only contains content when request_order = "GP.
This is correct. according to the explanation of request_order, it sets the setting and overwrite sequence of the $ _ REQUEST variable. If it is null, that is, $ _ REQUEST does not contain the P (Post), G (Get), and C (Cookie) variables, it is null.
What does the following sentence of php mean:
If this directive is not set, variables_order is used for $_REQUEST contents.
Doesn't it mean that the value of variables_order will be used if it is left empty?
Also, php. ini says:
626 ; This directive determines which super global data (G,P,C,E & S) should 627 ; be registered into the super global array REQUEST. If so, it also determines 628 ; the order in which that data is registered. The values for this directive are 629 ; specified in the same manner as the variables_order directive, EXCEPT one. 630 ; Leaving this value empty will cause PHP to use the value set in the 631 ; variables_order directive. It does not mean it will leave the super globals 632 ; array REQUEST empty. 633 ; Default Value: None 634 ; Development Value: "GP" 635 ; Production Value: "GP" 636 ; http://php.net/request-order 637 request_order = "GP"
Do I understand it wrong? My English skills are relatively poor...
Just tested. Variables_order = "GP"
Or variables_order = "GPCS"
Request_order =
As mentioned in the manual, the value of request_order uses the value of variables_order.
Php 5.2.17.
I am wondering that the request_order in changelog was introduced in 5.3. I do not know why this configuration item is also available in the configuration of 5.2.
I don't know how you requested it. I will describe your request process.
Xxx. php? Aaa = bbb
When request_order is null, $ _ REQUEST is an empty array,
$ _ REQUEST only contains content when request_order = "GP.
This is correct. according to the explanation of request_order, it sets the setting and overwrite sequence of the $ _ REQUEST variable. If it is null, that is, $ _ REQUEST does not contain the P (Post), G (Get), and C (Cookie) variables, it is null.
What does the following sentence of php mean:
If this directive is not set, variables_order is used for $_REQUEST contents.
Doesn't it mean that the value of variables_order will be used if it is left empty?
Also, php. ini says:
626 ; This directive determines which super global data (G,P,C,E & S) should 627 ; be registered into the super global array REQUEST. If so, it also determines 628 ; the order in which that data is registered. The values for this directive are 629 ; specified in the same manner as the variables_order directive, EXCEPT one. 630 ; Leaving this value empty will cause PHP to use the value set in the 631 ; variables_order directive. It does not mean it will leave the super globals 632 ; array REQUEST empty. 633 ; Default Value: None 634 ; Development Value: "GP" 635 ; Production Value: "GP" 636 ; http://php.net/request-order 637 request_order = "GP"
Do I understand it wrong? My English skills are relatively poor...
Just tested. Variables_order = "GP"
Or variables_order = "GPCS"
Request_order =
As mentioned in the manual, the value of request_order uses the value of variables_order.
Php 5.2.17.
I am wondering that the request_order in changelog was introduced in 5.3. I do not know why this configuration item is also available in the configuration of 5.2.
However, I used a foreign server php 5.3.24 and the local php 5.4.4 test results to leave request_order empty. instead of using the variables_order value, I directly leave $ _ REQUEST empty.
Request_order is indeed introduced only when it is 5.3. Will it be because the request_order you set does not work at all? Before 5.3, you may use variables_order directly for $ _ REQUEST.
For $ _ REQUEST processing, early php5.3 versions are problematic.
At least in php 5.3.6, if no data is input, $ _ REQUEST is undefined instead of being empty.
It is unclear which version of the problem was corrected.
It does not mean it will leave the super globals array REQUEST empty.
For $ _ REQUEST processing, early php5.3 versions are problematic.
At least in php 5.3.6, if no data is input, $ _ REQUEST is undefined instead of being empty.
It is unclear which version of the problem was corrected.
It does not mean it will leave the super globals array REQUEST empty.
The two versions I tested are empty arrays, not undefined,
I just read ChangeLog and didn't mention this. as a result, the php document and php. ini mentioned above are all incorrect?