1.2.1414. Uses Environment¶
This rule spots usage of $_ENV
, getenv()
and putenv()
functions: they fetch data from the environment variables.
<?php
// Take some configuration from the environment
$secret_key = getenv('secret_key');
?>
1.2.1414.1. Connex PHP features¶
1.2.1414.1.1. Specs¶
Short name |
Php/UsesEnv |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |