10000 bug #46012 [HttpKernel] Fix Symfony not working on SMB share (qinshuze) · symfony/symfony@76f6d74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76f6d74

Browse files
bug #46012 [HttpKernel] Fix Symfony not working on SMB share (qinshuze)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] Fix Symfony not working on SMB share | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #45990 | License | MIT | Doc PR | - Commits ------- 1ff7ebc Fix Symfony not working on SMB share #45990
2 parents 63de80b + 1ff7ebc commit 76f6d74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,7 @@ protected function initializeContainer()
528528
is_dir($cacheDir) ?: mkdir($cacheDir, 0777, true);
529529

530530
if ($lock = fopen($cachePath.'.lock', 'w')) {
531-
flock($lock, \LOCK_EX | \LOCK_NB, $wouldBlock);
532-
533-
if (!flock($lock, $wouldBlock ? \LOCK_SH : \LOCK_EX)) {
531+
if (!flock($lock, \LOCK_EX | \LOCK_NB, $wouldBlock) && !flock($lock, $wouldBlock ? \LOCK_SH : \LOCK_EX)) {
534532
fclose($lock);
535533
$lock = null;
536534
} elseif (!is_file($cachePath) || !\is_object($this->container = include $cachePath)) {

0 commit comments

Comments
 (0)
0