Skip to content

Commit

Permalink
Disable more chxxx() warnings (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Dec 3, 2018
1 parent e8d5e7c commit 21c5c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,8 @@ All issues that break backwards compatibility are flagged [BC].
* add CS rules
* update dev dependencies

### 2.0.2
* disable more chmod/chown/chgrp warnings in FilesystemCache

### next
*
6 changes: 3 additions & 3 deletions src/Radebatz/ACache/FilesystemCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ public function save($id, $data, $lifeTime = null, $namespace = null)
$result = (bool) file_put_contents($filename, $expires . PHP_EOL . serialize($data));

$perms = $this->permissions[static::P_FILE];
chmod($filename, $perms['mode']);
@chmod($filename, $perms['mode']);
if ($perms['owner']) {
chown($filename, $perms['owner']);
@chown($filename, $perms['owner']);
}
if ($perms['group']) {
chgrp($filename, $perms['group']);
@chgrp($filename, $perms['group']);
}

return $result;
Expand Down

0 comments on commit 21c5c32

Please sign in to comment.