PhpBrew\Utils::findLibPrefix PHP 메소드

findLibPrefix() 공개 정적인 메소드

public static findLibPrefix ( )
    public static function findLibPrefix()
    {
        $files = func_get_args();
        $prefixes = self::getLookupPrefixes();
        foreach ($prefixes as $prefix) {
            foreach ($files as $file) {
                $p = $prefix . DIRECTORY_SEPARATOR . $file;
                if (file_exists($p)) {
                    return $prefix;
                }
            }
        }
        return;
    }

Usage Example

예제 #1
0
파일: UtilsTest.php 프로젝트: bensb/phpbrew
 public function testPrefix()
 {
     $this->assertNotNull(Utils::findLibPrefix('icu/pkgdata.inc', 'icu/Makefile.inc'));
     $this->assertNotNull(Utils::findIncludePrefix('openssl/opensslv.h'));
 }
All Usage Examples Of PhpBrew\Utils::findLibPrefix