Browse Source

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

Jordi Boggiano 9 năm trước cách đây
mục cha
commit
e2056499cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
             }
         }