Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 9db3cfb

Browse files
committed
getSize returns false if stream is unstatable.
1 parent 5e9ff77 commit 9db3cfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Generic.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public function getDirname()
8888
*/
8989
public function getSize()
9090
{
91+
if (false === $this->getStatistic()) {
92+
return false;
93+
}
94+
9195
return filesize($this->getStreamName());
9296
}
9397

0 commit comments

Comments
 (0)