mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-03 22:17:24 +02:00
Add tests
This commit is contained in:
@@ -119,6 +119,10 @@ class ZipReadEntry extends ZipAbstractEntry
|
||||
public function getEntryContent()
|
||||
{
|
||||
if ($this->entryContent === null) {
|
||||
if ($this->isDirectory()) {
|
||||
$this->entryContent = null;
|
||||
return $this->entryContent;
|
||||
}
|
||||
$isEncrypted = $this->isEncrypted();
|
||||
$password = $this->getPassword();
|
||||
if ($isEncrypted && empty($password)) {
|
||||
|
Reference in New Issue
Block a user