File phpMyAdmin-tempnam.patch of Package phpMyAdmin
diff -purN a/vendor/twig/twig/src/Cache/FilesystemCache.php b/vendor/twig/twig/src/Cache/FilesystemCache.php
--- a/vendor/twig/twig/src/Cache/FilesystemCache.php 2025-01-21 04:15:08.000000000 +0100
+++ b/vendor/twig/twig/src/Cache/FilesystemCache.php 2025-01-21 21:18:56.778155281 +0100
@@ -57,7 +57,7 @@ class FilesystemCache implements CacheIn
throw new \RuntimeException(\sprintf('Unable to write in the cache directory (%s).', $dir));
}
- $tmpFile = tempnam($dir, basename($key));
+ $tmpFile = @tempnam($dir, basename($key));
if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $key)) {
@chmod($key, 0666 & ~umask());