Home
DevCentral
Search
Configure Global Search
Log In
Transactions
D2497
Change Details
Change Details
Old
New
Diff
By default Reference: EGPCD GPCS SERVER https://www.php.net/manual/en/install.fpm.configuration.php
By default, Fedora and Ubuntu PHP packages maintainers set the variables_order configuration variable to GPCS, not filling the $_ENV array. The Environment class provides a standard way to query both $_ENV and $_SERVER. Advantage against getenv() is it doesn't return false if the value doesn't exist, but throw an exception. The getOr variable allows to provide a default value, so $_ENV['foo'] ?? $_SERVER['foo'] ?? default can be expressed more easily. References: - https://www.php.net/manual/en/ini.core.php - https://www.php.net/manual/en/install.fpm.configuration.php
By default
, Fedora and Ubuntu PHP packages maintainers set the variables_order configuration variable to GPCS, not filling the $_ENV array.
Reference:
The Environment class provides a standard way to query both
EGPCD GPCS
$_ENV and $_SERVER. Advantage against getenv() is it doesn't return false if the value doesn't exist, but throw an exception. The getOr variable allows to provide a default value, so $_ENV['foo'] ?? $_SERVER['foo'] ?? default can be expressed more easily. References:
SERVER
- https://www.php.net/manual/en/ini.core.php
-
https://www.php.net/manual/en/install.fpm.configuration.php
Continue