aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2009-03-09 22:24:39 -0400
committerpabs <pabs@pablotron.org>2009-03-09 22:24:39 -0400
commit4460699c0ea1324e14a129a0e312a9d73555f7d9 (patch)
treeee7fe87c4f29ce9223c055eb8bbabedb8cbb4016
parent472813bab1049eaf1ca8d20a81883b3273701fbf (diff)
downloadzipstream-php-4460699c0ea1324e14a129a0e312a9d73555f7d9.tar.bz2
zipstream-php-4460699c0ea1324e14a129a0e312a9d73555f7d9.zip
fix version information for winzip
-rw-r--r--zipstream.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/zipstream.php b/zipstream.php
index 5f0e663..a073864 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -302,6 +302,7 @@ class ZipStream {
# build file header
$fields = array( # (from V.A of APPNOTE.TXT)
array('V', 0x04034b50), # local file header signature
+ array('v', (6 << 8) + 3), # version needed to extract
array('v', 63), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', $meth), # compresion method (deflate or store)
@@ -415,8 +416,8 @@ class ZipStream {
$fields = array( # (from V,F of APPNOTE.TXT)
array('V', 0x02014b50), # central file header signature
- array('v', (3 << 8) & 63), # version made by
- array('v', 63), # version needed to extract
+ array('v', (6 << 8) + 3), # version made by
+ array('v', (6 << 8) + 3), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', $meth), # compresion method (deflate or store)
array('V', $dts), # dos timestamp