protected function matchEnv(/*# string */ $name)
    {
        if ('_' === $name[0]) {
            // PHP super globals like _SERVER, _COOKIE etc.
            $pos = strpos($name, '.');
            if (false !== $pos) {
                $pref = substr($name, 0, $pos);
                $suff = substr($name, $pos + 1);
                if (isset($GLOBALS[$pref][$suff])) {
                    return $GLOBALS[$pref][$suff];
                }
            }
        }
        return getenv($name);
    }
protected function matchEnv(/*# string */ $name)
    {
        if ('_' === $name[0]) {
            // PHP super globals like _SERVER, _COOKIE etc.
            $pos = strpos($name, '.');
            if (false !== $pos) {
                $pref = substr($name, 0, $pos);
                $suff = substr($name, $pos + 1);
                if (isset($GLOBALS[$pref][$suff])) {
                    return $GLOBALS[$pref][$suff];
                }
            }
        }
        return getenv($name);
    }
protected function matchEnv ( /*# string */ $ name ) { if ( '_' === $ name [ 0 ] ) { // PHP super globals like _SERVER, _COOKIE etc. $ pos = strpos ( $ name , '.' ) ; if ( false !== $ pos ) { $ pref = substr ( $ name , 0 , $ pos ) ; $ suff = substr ( $ name , $ pos + 1 ) ; if ( isset ( $ GLOBALS [ $ pref ] [ $ suff ] ) ) { return $ GLOBALS [ $ pref ] [ $ suff ] ; } } } return getenv ( $ name ) ; }
Find the env value base one the name

- support super globals like '_SERVER.HTTP_HOST' etc.
- use getenv()

@param  string $name
@return string|false
@access protected
Find the env value base one the name