8000 bug #35243 [HttpKernel] release lock explicitly (nicolas-grekas) · symfony/symfony@290ce00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 290ce00

Browse files
committed
bug #35243 [HttpKernel] release lock explicitly (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] release lock explicitly | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35242 | License | MIT | Doc PR | - Commits ------- 6fb5581 [HttpKernel] release lock explicitly
2 parents 0942e33 + 6fb5581 commit 290ce00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ public function write($content, array $metadata = null)
556556
}
557557
}
558558

559-
public function __destruct()
559+
public function release()
560560
{
561561
flock($this->lock, LOCK_UN);
562562
fclose($this->lock);
@@ -634,7 +634,7 @@ public function __destruct()
634634
}
635635

636636
$this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());
637-
unset($cache);
637+
$cache->release();
638638
$this->container = require $cachePath;
639639
$this->container->set('kernel', $this);
640640

0 commit comments

Comments
 (0)
0