Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 290ce00

Browse filesBrowse 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
Copy full SHA for 290ce00

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/HttpKernel/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Kernel.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.