소스 검색

fix race condition

Rob Bast 9 년 전
부모
커밋
64d653ad92
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);