src/Acquia/Cloud/Environment/CloudEnvironment.php
protected function getenv($key)
    {
        $value = getenv($key);
        if ($value === false) {
            if (isset($_ENV[$key])) {
                $value = $_ENV[$key];
            }
            if (isset($_SERVER[$key])) {
                $value = $_SERVER[$key];
            }
        }
        return $value;
    }
protected function getenv($key)
    {
        $value = getenv($key);
        if ($value === false) {
            if (isset($_ENV[$key])) {
                $value = $_ENV[$key];
            }
            if (isset($_SERVER[$key])) {
                $value = $_SERVER[$key];
            }
        }
        return $value;
    }
protected function getenv ( $ key ) { $ value = getenv ( $ key ) ; if ( $ value === false ) { if ( isset ( $ _ENV [ $ key ] ) ) { $ value = $ _ENV [ $ key ] ; } if ( isset ( $ _SERVER [ $ key ] ) ) { $ value = $ _SERVER [ $ key ] ; } } return $ value ; }
Acquia Cloud variables may be set in settings.inc after PHP init,
so make sure that we are loading them.

@param string $key
@return string The value of the environment variable or false if not found
@see https://github.com/acquia/acquia-sdk-php/pull/58#issuecomment-45167451
Acquia Cloud variables may be set in settings . inc after PHP init so make sure that we are loading them .