mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
File类增加__call方法支持 兼容5.0版本的md5和 sha1方法
This commit is contained in:
@@ -403,4 +403,9 @@ class File extends SplFileObject
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
public function __call($method, $args)
|
||||
{
|
||||
return $this->hash($method);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user