Skip to content

Commit

Permalink
Merge pull request #199 from rwifeng/config_dir
Browse files Browse the repository at this point in the history
config file to tmp dir
  • Loading branch information
longbai authored Nov 2, 2016
2 parents 915c93f + e9cdc25 commit 8100792
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#Changelog

## 7.1.1 (2016-11-02)
### 修正
* 多区域配置文件存储目录从home修改到tmp目录


## 7.1.0 (2016-10-22)
### 增加
* 多存储区域的支持

## 7.0.8 (2016-07-19)
### 增加
* demo
Expand Down
2 changes: 1 addition & 1 deletion src/Qiniu/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

final class Config
{
const SDK_VER = '7.1.0';
const SDK_VER = '7.1.1';

const BLOCK_SIZE = 4194304; //4*1024*1024 分块上传块大小,该参数为接口规格,不能修改

Expand Down
3 changes: 1 addition & 2 deletions src/Qiniu/Zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ private function hostCacheToFile()

private function hostCacheFilePath()
{
$home = getenv('HOME');
return $home . '/.qiniu_phpsdk_hostscache.json';
return sys_get_temp_dir() . '/.qiniu_phpsdk_hostscache.json';
}

/* 请求包:
Expand Down

0 comments on commit 8100792

Please sign in to comment.