X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdoctrine%2Fannotations%2Flib%2FDoctrine%2FCommon%2FAnnotations%2FFileCacheReader.php;fp=vendor%2Fdoctrine%2Fannotations%2Flib%2FDoctrine%2FCommon%2FAnnotations%2FFileCacheReader.php;h=fd2fedee1f4c569e9a929fcb3e6a6813fc627412;hp=24add1b3ba83a46abaedbc393758c0f9fd8d924f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php index 24add1b3b..fd2fedee1 100644 --- a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php +++ b/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php @@ -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, '