Explorar o código

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

Jordi Boggiano %!s(int64=9) %!d(string=hai) anos
pai
achega
e2056499cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }
         }