Skip to content

Commit 12485b0

Browse files
Merge branch '4.4' into 5.2
* 4.4: [HttpKernel] do is_file check before include [PhpUnitBridge] fix reporting deprecations from DebugClassLoader [FrameworkBundle] skip deprecation in integration tests
2 parents 10fdbbc + 835cfc2 commit 12485b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ protected function initializeContainer()
466466
if (!flock($lock, $wouldBlock ? \LOCK_SH : \LOCK_EX)) {
467467
fclose($lock);
468468
$lock = null;
469-
} elseif (!\is_object($this->container = include $cachePath)) {
469+
} elseif (!is_file($cachePath) || !\is_object($this->container = include $cachePath)) {
470470
$this->container = null;
471471
} elseif (!$oldContainer || \get_class($this->container) !== $oldContainer->name) {
472472
flock($lock, \LOCK_UN);

0 commit comments

Comments
 (0)