1
0
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:
wapplay-home-linux
2017-03-13 08:33:45 +03:00
parent 08c890ba24
commit db50dd8e46
8 changed files with 1288 additions and 326 deletions

View File

@@ -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)) {