xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Replace $_ENV with $_SERVER #266

Closed thekid closed 3 years ago

thekid commented 3 years ago

The $_ENV global is only populated if the php.ini setting variables_order contains an "E", while $_SERVER always contains the environment variables. php.ini from the PHP GIT repo contains this:

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

On Ubuntu, it's explicitely set as follows: /etc/php/7.4/cli/php.ini:variables_order = "GPCS"

See issue #265

thekid commented 3 years ago

Released in https://github.com/xp-framework/core/releases/tag/v10.9.0