Skip to content

Navigation Menu

Sign in
Appearance settings

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 6fb5581

Browse filesBrowse files
[HttpKernel] release lock explicitly
1 parent b9a0b33 commit 6fb5581
Copy full SHA for 6fb5581

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.