; This directive determines which super global arrays are registered when PHP
; starts up. G,P,C,E & S are abbreviations for the following respective super
; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
; paid for the registration of these arrays and because ENV is not as commonly
; used as the others, ENV is not recommended on productions servers. You
; can still get access to the environment variables through getenv() should you
; need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://php.net/variables-order
variables_order = "GPCS"
; This directive determines which super global data (G,P & C) should be
; registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive
; are specified in the same manner as the variables_order directive,
; EXCEPT one. Leaving this value empty will cause PHP to use the value set
; in the variables_order directive. It does not mean it will leave the super
; globals array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://php.net/request-order
request_order = "GP"
以上是php.ini的内容,PHP Version 7.3.11
variables_order = "GPCS"决定哪些超级全局变量会被启用,启用会有性能代价。E一半不启用。
request_order = "GP"决定哪些超级全局变量会被添加到超级全局变量REQUEST中,如果留空,则按照variables_order 指定的注册到REQUEST,并且按照顺序注册进去,后面的会覆盖前面的。也就是POST包含的数据将覆盖GET中使用相同关键字的数据。