소스 검색

Avoid open_basedir warnings on is_dir() calls when probing for CABundle

Jordi Boggiano 9 년 전
부모
커밋
e2056499cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 1
src/Composer/Util/RemoteFilesystem.php

@@ -915,7 +915,7 @@ class RemoteFilesystem
 
         foreach ($caBundlePaths as $caBundle) {
             $caBundle = dirname($caBundle);
-            if (is_dir($caBundle) && glob($caBundle.'/*')) {
+            if (Silencer::call('is_dir', $caBundle) && glob($caBundle.'/*')) {
                 return $caPath = $caBundle;
             }
         }