Skip to content

Commit 6ac9129

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Bridge] Fix mkdir() race condition in ProxyCacheWarmer [Cache] update readme Psr18Client ignore invalid HTTP headers skip a transient test on AppVeyor
2 parents e0250f6 + 49a19ea commit 6ac9129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CacheWarmer/ProxyCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function warmUp(string $cacheDir)
5252
foreach ($this->registry->getManagers() as $em) {
5353
// we need the directory no matter the proxy cache generation strategy
5454
if (!is_dir($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
55-
if (false === @mkdir($proxyCacheDir, 0777, true)) {
55+
if (false === @mkdir($proxyCacheDir, 0777, true) && !is_dir($proxyCacheDir)) {
5656
throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
5757
}
5858
} elseif (!is_writable($proxyCacheDir)) {

0 commit comments

Comments
 (0)