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
-------
4ad09ebafb
[HttpKernel] fix wrong removal of the just generated container dir
This commit is contained in:
commit
b38bde9cb1
@ -868,7 +868,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
|||||||
$fs->dumpFile($dir.$file, $code);
|
$fs->dumpFile($dir.$file, $code);
|
||||||
@chmod($dir.$file, 0666 & ~umask());
|
@chmod($dir.$file, 0666 & ~umask());
|
||||||
}
|
}
|
||||||
$legacyFile = \dirname($dir.$file).'.legacy';
|
$legacyFile = \dirname($dir.key($content)).'.legacy';
|
||||||
if (file_exists($legacyFile)) {
|
if (file_exists($legacyFile)) {
|
||||||
@unlink($legacyFile);
|
@unlink($legacyFile);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user