mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-02 21:47:23 +02:00
Merge tag '3.1.14' into develop
fix unknown zip software version
This commit is contained in:
@@ -225,6 +225,10 @@ class ZipOutputStream implements ZipOutputStreamInterface
|
|||||||
$entry->setCreatedOS(ZipEntry::PLATFORM_UNIX);
|
$entry->setCreatedOS(ZipEntry::PLATFORM_UNIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($entry->getSoftwareVersion() === ZipEntry::UNKNOWN) {
|
||||||
|
$entry->setSoftwareVersion(63);
|
||||||
|
}
|
||||||
|
|
||||||
if ($entry->getExtractedOS() === ZipEntry::UNKNOWN) {
|
if ($entry->getExtractedOS() === ZipEntry::UNKNOWN) {
|
||||||
$entry->setExtractedOS(ZipEntry::PLATFORM_UNIX);
|
$entry->setExtractedOS(ZipEntry::PLATFORM_UNIX);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user