Merge pull request #19 from benmanu/pulls/save-state-permission-0.2

Add umask when saving state to the file system to prevent permission den...
This commit is contained in:
Ingo Schommer 2015-03-31 09:29:26 +13:00
commit d30852db1d

View File

@ -299,7 +299,9 @@ class TestSessionEnvironment extends Object {
} else {
$content = json_encode($state);
}
$old = umask(0);
file_put_contents($this->getFilePath(), $content, LOCK_EX);
umask($old);
}
public function loadFromFile() {