Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 509142e commit c9a0355Copy full SHA for c9a0355
src/Symfony/Component/HttpKernel/HttpCache/Store.php
@@ -387,16 +387,22 @@ private function save($key, $data)
387
388
$tmpFile = tempnam(dirname($path), basename($path));
389
if (false === $fp = @fopen($tmpFile, 'wb')) {
390
+ @unlink($tmpFile);
391
+
392
return false;
393
}
394
@fwrite($fp, $data);
395
@fclose($fp);
396
397
if ($data != file_get_contents($tmpFile)) {
398
399
400
401
402
403
if (false === @rename($tmpFile, $path)) {
404
405
406
407
408
0 commit comments