Security update for Core, with self-updated composer
[yaffs-website] / vendor / doctrine / annotations / lib / Doctrine / Common / Annotations / FileCacheReader.php
index 24add1b3ba83a46abaedbc393758c0f9fd8d924f..fd2fedee1f4c569e9a929fcb3e6a6813fc627412 100644 (file)
@@ -112,7 +112,7 @@ class FileCacheReader implements Reader
         }
 
         if ($this->debug
-            && (false !== $filename = $class->getFilename())
+            && (false !== $filename = $class->getFileName())
             && filemtime($path) < filemtime($filename)) {
             @unlink($path);
 
@@ -214,6 +214,8 @@ class FileCacheReader implements Reader
             throw new \RuntimeException(sprintf('Unable to create tempfile in directory: %s', $this->dir));
         }
 
+        @chmod($tempfile, 0666 & (~$this->umask));
+
         $written = file_put_contents($tempfile, '<?php return unserialize('.var_export(serialize($data), true).');');
 
         if (false === $written) {