From 4ca0e81d31a4cad93aab2898c835a82cda6f80a9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 26 Oct 2016 20:05:04 +0800 Subject: [PATCH] =?UTF-8?q?File=E7=B1=BB=20=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/File.php b/library/think/File.php index 43f38575..60a16417 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -39,7 +39,7 @@ class File extends SplFileObject public function __construct($filename, $mode = 'r') { parent::__construct($filename, $mode); - $this->filename = $this->getRealPath(); + $this->filename = $this->getRealPath() ?: $this->getPathname(); } /**