New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more atomic options when creating directories. #11182

Merged
merged 1 commit into from Sep 14, 2017
Jump to file or symbol
Failed to load files and symbols.
+4 −3
Diff settings

Always

Just for now

@@ -380,9 +380,10 @@ protected function _setKey($key, $createKey = false)
}
$dir = $this->_config['path'] . $groups;
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
// @codingStandardsIgnoreStart
@mkdir($dir, 0775, true);
// @codingStandardsIgnoreEnd
$path = new SplFileInfo($dir . $key);
if (!$createKey && !$path->isFile()) {
ProTip! Use n and p to navigate between commits in a pull request.