PhpBrew\Utils::findLibDir PHP Method

findLibDir() public static method

public static findLibDir ( )
    public static function findLibDir()
    {
        $prefixes = array('/opt', '/opt/local', '/usr', '/usr/local');
        if ($pathStr = getenv('PHPBREW_LOOKUP_PREFIX')) {
            $paths = explode(':', $pathStr);
            foreach ($paths as $path) {
                $prefixes[] = $path;
            }
        }
        $prefixes = array_reverse($prefixes);
        foreach ($prefixes as $prefix) {
            if ($arch = self::detectArch($prefix)) {
                return "lib/{$arch}";
            }
        }
        return;
    }