Skip to content

Commit f9cca00

Browse files
committed
config file to tmp dir
1 parent 915c93f commit f9cca00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Qiniu/Zone.php

+1-2
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)