Merge pull request #5889 from owncloud/extstorage-smb-brokenfseek
Fix for smb4php fseek
This commit is contained in:
commit
fa44c699f7
|
@ -460,7 +460,8 @@ class smb_stream_wrapper extends smb {
|
|||
|
||||
function stream_tell () { return ftell($this->stream); }
|
||||
|
||||
function stream_seek ($offset, $whence=null) { return fseek($this->stream, $offset, $whence); }
|
||||
// PATCH: the wrapper must return true when fseek succeeded by returning 0.
|
||||
function stream_seek ($offset, $whence=null) { return fseek($this->stream, $offset, $whence) === 0; }
|
||||
|
||||
function stream_flush () {
|
||||
if ($this->mode <> 'r' && $this->need_flush) {
|
||||
|
|
Loading…
Reference in New Issue