function CaBundle::getEnvVariable
Parameters
string $name:
Return value
string|false
1 call to CaBundle::getEnvVariable()
- CaBundle::getSystemCaRootBundlePath in vendor/
composer/ ca-bundle/ src/ CaBundle.php - Returns the system CA bundle path, or a path to the bundled one
File
-
vendor/
composer/ ca-bundle/ src/ CaBundle.php, line 213
Class
- CaBundle
- @author Chris Smith <chris@cs278.org> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CaBundleCode
private static function getEnvVariable($name) {
if (isset($_SERVER[$name])) {
return (string) $_SERVER[$name];
}
if (PHP_SAPI === 'cli' && ($value = getenv($name)) !== false && $value !== null) {
return (string) $value;
}
return false;
}