mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
return false if stream_stat fails
This commit is contained in:
parent
acb94a0a85
commit
7aa7b44b7c
1 changed files with 6 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
namespace Icewind\SMB;
|
namespace Icewind\SMB;
|
||||||
|
|
||||||
|
use Icewind\SMB\Exception\Exception;
|
||||||
use Icewind\SMB\Exception\InvalidRequestException;
|
use Icewind\SMB\Exception\InvalidRequestException;
|
||||||
use Icewind\Streams\File;
|
use Icewind\Streams\File;
|
||||||
|
|
||||||
|
|
@ -89,7 +90,11 @@ class NativeStream implements File {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function stream_stat() {
|
public function stream_stat() {
|
||||||
return $this->state->fstat($this->handle);
|
try {
|
||||||
|
return $this->state->fstat($this->handle);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function stream_tell() {
|
public function stream_tell() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue