Skip to content

Commit 6fb5581

Browse files
[HttpKernel] release lock explicitly
1 parent b9a0b33 commit 6fb5581

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy