From f98415ad45e5ec73b1be84f374ea32eb765df4fc Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 29 Sep 2016 17:45:36 +0800 Subject: [PATCH] =?UTF-8?q?File=E7=B1=BB=E5=A2=9E=E5=8A=A0=5F=5Fcall?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=94=AF=E6=8C=81=20=E5=85=BC=E5=AE=B95.0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=9A=84md5=E5=92=8C=20sha1=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/File.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/think/File.php b/library/think/File.php index 970063b2..43f38575 100644 --- a/library/think/File.php +++ b/library/think/File.php @@ -403,4 +403,9 @@ class File extends SplFileObject { return $this->error; } + + public function __call($method, $args) + { + return $this->hash($method); + } }