Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fabpot committed Jan 7, 2020
2 parents 0942e33 + 6fb5581 commit 290ce00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpKernel/Kernel.php
Expand Up @@ -556,7 +556,7 @@ public function write($content, array $metadata = null)
}
}

public function __destruct()
public function release()
{
flock($this->lock, LOCK_UN);
fclose($this->lock);
Expand Down Expand Up @@ -634,7 +634,7 @@ public function __destruct()
}

$this->dumpContainer($cache, $container, $class, $this->getContainerBaseClass());
unset($cache);
$cache->release();
$this->container = require $cachePath;
$this->container->set('kernel', $this);

Expand Down

0 comments on commit 290ce00

Please sign in to comment.