Optimize reading of large files when using php-smbclient

This commit is contained in:
Robin Appelman 2017-08-16 16:43:55 +02:00
commit 8c89cb8972
3 changed files with 108 additions and 7 deletions

View file

@ -233,7 +233,7 @@ class NativeShare extends AbstractShare {
public function read($source) {
$url = $this->buildUrl($source);
$handle = $this->state->open($url, 'r');
return NativeStream::wrap($this->state, $handle, 'r', $url);
return NativeReadStream::wrap($this->state, $handle, 'r', $url);
}
/**