mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
File类 兼容性处理
This commit is contained in:
@@ -39,7 +39,7 @@ class File extends SplFileObject
|
|||||||
public function __construct($filename, $mode = 'r')
|
public function __construct($filename, $mode = 'r')
|
||||||
{
|
{
|
||||||
parent::__construct($filename, $mode);
|
parent::__construct($filename, $mode);
|
||||||
$this->filename = $this->getRealPath();
|
$this->filename = $this->getRealPath() ?: $this->getPathname();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user