From 17479a6eda2dbbedd625d03ec1e45ba622e47611 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 12 May 2017 15:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97=E5=88=87=E5=89=B2=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/log/driver/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/log/driver/File.php b/library/think/log/driver/File.php index fdf72658..d82a5243 100644 --- a/library/think/log/driver/File.php +++ b/library/think/log/driver/File.php @@ -76,7 +76,7 @@ class File { //检测日志文件大小,超过配置大小则备份日志文件重新生成 if (is_file($destination) && floor($this->config['file_size']) <= filesize($destination)) { - rename($destination, dirname($destination) . DS . $_SERVER['REQUEST_TIME'] . '-' . basename($destination)); + rename($destination, dirname($destination) . DS . time() . '-' . basename($destination)); $this->writed[$destination] = false; }