AssemblyStream is also eof if we have no more source stream
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
02de67773c
commit
6b7a69752c
|
@ -182,7 +182,7 @@ class AssemblyStream implements \Icewind\Streams\File {
|
|||
* @return bool
|
||||
*/
|
||||
public function stream_eof() {
|
||||
return $this->pos >= $this->size;
|
||||
return $this->pos >= $this->size || $this->currentStream === null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue