mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
fix return type of NativeStream seek
This commit is contained in:
parent
77c30c698f
commit
f018d1cd0a
2 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ class NativeState {
|
|||
* @param resource $file
|
||||
* @param int $offset
|
||||
* @param int $whence SEEK_SET | SEEK_CUR | SEEK_END
|
||||
* @return int
|
||||
* @return int | bool new file offset as measured from the start of the file on success, false on failure.
|
||||
*/
|
||||
public function lseek($file, $offset, $whence = SEEK_SET) {
|
||||
$result = @smbclient_lseek($this->state, $file, $offset, $whence);
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ class NativeStream implements File {
|
|||
|
||||
public function stream_seek($offset, $whence = SEEK_SET) {
|
||||
$this->eof = false;
|
||||
return $this->state->lseek($this->handle, $offset, $whence);
|
||||
return $this->state->lseek($this->handle, $offset, $whence) !== false;
|
||||
}
|
||||
|
||||
public function stream_stat() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue