Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b38bde9

Browse files
committed
bug #34041 [HttpKernel] fix wrong removal of the just generated container dir (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] fix wrong removal of the just generated container dir | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The patch applies to 3.4 but the fix really affects to 4.4 with the introduction of the new `.preload.php` file. /cc @fabpot since you encountered this error quite often recently during `composer up/req` :) Commits ------- 4ad09eb [HttpKernel] fix wrong removal of the just generated container dir
2 parents a54ecb0 + 4ad09eb commit b38bde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
868868
$fs->dumpFile($dir.$file, $code);
869869
@chmod($dir.$file, 0666 & ~umask());
870870
}
871-
$legacyFile = \dirname($dir.$file).'.legacy';
871+
$legacyFile = \dirname($dir.key($content)).'.legacy';
872872
if (file_exists($legacyFile)) {
873873
@unlink($legacyFile);
874874
}

0 commit comments

Comments
 (0)