Skip to content

Commit

Permalink
fix unknown software version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne-Lexa committed Dec 9, 2019
1 parent f2d2954 commit 50015f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PhpZip/Stream/ZipOutputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ protected function entryCommitChangesAndReturnContent(ZipEntry $entry)
$entry->setCreatedOS(ZipEntry::PLATFORM_UNIX);
}

if ($entry->getSoftwareVersion() === ZipEntry::UNKNOWN) {
$entry->setSoftwareVersion(63);
}

if ($entry->getExtractedOS() === ZipEntry::UNKNOWN) {
$entry->setExtractedOS(ZipEntry::PLATFORM_UNIX);
}
Expand Down

0 comments on commit 50015f2

Please sign in to comment.