替换 time() 为 $_SERVER['REQUEST_TIME']

This commit is contained in:
thinkphp
2016-07-03 15:03:10 +08:00
parent a322a28f27
commit ea9682c724
8 changed files with 13 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ class File
//检测日志文件大小,超过配置大小则备份日志文件重新生成
if (is_file($destination) && floor($this->config['file_size']) <= filesize($destination)) {
rename($destination, dirname($destination) . DS . time() . '-' . basename($destination));
rename($destination, dirname($destination) . DS . $_SERVER['REQUEST_TIME'] . '-' . basename($destination));
}
// 获取基本信息