We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d83a12e + 30421e5 commit f5045f4Copy full SHA for f5045f4
src/OneMightyRoar/PhpFileManager/FileObject.php
@@ -685,7 +685,10 @@ public function getHash($algo = self::DEFAULT_HASH_ALGO)
685
throw new InvalidArgumentException('Hash algorithm not supported by your system');
686
}
687
688
- return hash($algo, $this->getRaw());
+ return (($this->isWrapped() || $this->isTemp()) ?
689
+ hash($algo, $this->getRaw())
690
+ : hash_file($algo, $this->getPathname())
691
+ );
692
693
694
/**
0 commit comments