fix return type of NativeStream seek

This commit is contained in:
Robin Appelman 2014-10-17 15:37:58 +02:00
commit f018d1cd0a
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@ class NativeState {
* @param resource $file * @param resource $file
* @param int $offset * @param int $offset
* @param int $whence SEEK_SET | SEEK_CUR | SEEK_END * @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) { public function lseek($file, $offset, $whence = SEEK_SET) {
$result = @smbclient_lseek($this->state, $file, $offset, $whence); $result = @smbclient_lseek($this->state, $file, $offset, $whence);

View file

@ -80,7 +80,7 @@ class NativeStream implements File {
public function stream_seek($offset, $whence = SEEK_SET) { public function stream_seek($offset, $whence = SEEK_SET) {
$this->eof = false; $this->eof = false;
return $this->state->lseek($this->handle, $offset, $whence); return $this->state->lseek($this->handle, $offset, $whence) !== false;
} }
public function stream_stat() { public function stream_stat() {