File类增加__call方法支持 兼容5.0版本的md5和 sha1方法

This commit is contained in:
thinkphp
2016-09-29 17:45:36 +08:00
parent e7929c419b
commit f98415ad45

View File

@@ -403,4 +403,9 @@ class File extends SplFileObject
{
return $this->error;
}
public function __call($method, $args)
{
return $this->hash($method);
}
}