Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/91'
Browse files Browse the repository at this point in the history
Close #91
Fix #90
  • Loading branch information
michalbundyra committed Oct 28, 2019
2 parents 3f291ed + 2ee7e5e commit 45d5fea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#91](https://github.com/zendframework/zend-modulemanager/pull/91) fixes permission on cache file.
The permission denied issue occurs on reading the cache file, when cache has been build using different user account.

## 2.8.3 - 2019-10-18

Expand Down
2 changes: 2 additions & 0 deletions src/Listener/AbstractListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ protected function writeArrayToFile($filePath, $array)

$content = "<?php\nreturn " . var_export($array, true) . ';';
file_put_contents($tmp, $content);
chmod($tmp, 0666 & ~umask());

rename($tmp, $filePath);

return $this;
Expand Down

0 comments on commit 45d5fea

Please sign in to comment.