修正几处BUG

This commit is contained in:
thinkphp
2016-06-28 17:05:47 +08:00
parent 25ad8a61f3
commit 802ead16a8
3 changed files with 3 additions and 5 deletions

View File

@@ -29,9 +29,9 @@ class File extends SplFileObject
// 上传文件信息
protected $info;
public function __construct($filename, $mode = 'r', $useIncludePath = false, $context = null)
public function __construct($filename, $mode = 'r')
{
parent::__construct($filename, $mode, $useIncludePath, $context);
parent::__construct($filename, $mode);
$this->filename = $this->getRealPath();
}