Explorar o código

fix race condition

Rob Bast %!s(int64=9) %!d(string=hai) anos
pai
achega
64d653ad92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/Composer/TestCase.php

+ 1 - 1
tests/Composer/TestCase.php

@@ -63,7 +63,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
 
         do {
             $unique = $root . DIRECTORY_SEPARATOR . uniqid('composer-test-');
-            if (!file_exists($unique) && mkdir($unique, 0777)) {
+            if (!file_exists($unique) && false !== @mkdir($unique, 0777)) {
                 return realpath($unique);
             }
         } while (--$attempts);