Skip to content

Commit 8100792

Browse files
authored
Merge pull request #199 from rwifeng/config_dir
config file to tmp dir
2 parents 915c93f + e9cdc25 commit 8100792

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#Changelog
22

3+
## 7.1.1 (2016-11-02)
4+
### 修正
5+
* 多区域配置文件存储目录从home修改到tmp目录
6+
7+
8+
## 7.1.0 (2016-10-22)
9+
### 增加
10+
* 多存储区域的支持
11+
312
## 7.0.8 (2016-07-19)
413
### 增加
514
* demo

src/Qiniu/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
final class Config
77
{
8-
const SDK_VER = '7.1.0';
8+
const SDK_VER = '7.1.1';
99

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

src/Qiniu/Zone.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ private function hostCacheToFile()
153153

154154
private function hostCacheFilePath()
155155
{
156-
$home = getenv('HOME');
157-
return $home . '/.qiniu_phpsdk_hostscache.json';
156+
return sys_get_temp_dir() . '/.qiniu_phpsdk_hostscache.json';
158157
}
159158

160159
/* 请求包:

0 commit comments

Comments
 (0)