Unverified Commit 1ffbb8eb authored by alexpott's avatar alexpott

Issue #3040166 follow-up by Lendude: mkdir() fails in...

Issue #3040166 follow-up by Lendude: mkdir() fails in BrowserHtmlDebugTrait.php:141 because of a race condition
parent f0b2fde4
......@@ -140,7 +140,7 @@ protected function initBrowserOutputFile() {
// concurrent test might have made the directory and caused mkdir() to
// fail. In this case we can still use the directory even though we failed
// to make it.
if (!is_dir($this->htmlOutputDirectory) && !mkdir($this->htmlOutputDirectory, 0775, TRUE) && !is_dir($this->htmlOutputDirectory)) {
if (!is_dir($this->htmlOutputDirectory) && !@mkdir($this->htmlOutputDirectory, 0775, TRUE) && !is_dir($this->htmlOutputDirectory)) {
throw new \RuntimeException(sprintf('Unable to create directory: %s', $this->htmlOutputDirectory));
}
if (!file_exists($this->htmlOutputDirectory . '/.htaccess')) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment