HomeCode
Diffusion Zed ce0821cf597c

Read from environment when PHP doesn't populate $_ENV

Description

Read from environment when PHP doesn't populate $_ENV

To help to build a local development environment,
play nice with generic PHP configurations in the wild.

On Fedora and Ubuntu, or if copying php-development.ini
into php.ini, $_ENV array isn't populated.

This issue has been has been solved at keruald/omnitools level,
so we can reuse it for other applications too, reading from
the $_SERVER superglobals array as fallback.

See also https://devcentral.nasqueron.org/D2497 for more context.

Details

Provenance
derecksonAuthored on Feb 5 2022, 12:25
Parents
rZED92303525e749: Allow legacy directory structure
Branches
Unknown
Tags
Unknown