路径用DS常量规范

This commit is contained in:
thinkphp
2015-12-10 13:31:12 +08:00
parent 9a2ff2f231
commit ba72cf44ef
4 changed files with 22 additions and 22 deletions

View File

@@ -42,7 +42,7 @@ class File
//检测日志文件大小,超过配置大小则备份日志文件重新生成
if (is_file($destination) && floor($this->config['file_size']) <= filesize($destination)) {
rename($destination, dirname($destination) . '/' . time() . '-' . basename($destination));
rename($destination, dirname($destination) . DS . time() . '-' . basename($destination));
}
error_log("[{$now}] {$_SERVER['SERVER_ADDR']} {$_SERVER['REMOTE_ADDR']} {$_SERVER['REQUEST_URI']}\r\n{$log}\r\n", 3, $destination);