aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2009-01-29 15:01:09 -0500
committerpabs <pabs@pablotron.org>2009-01-29 15:01:09 -0500
commitb9f77eb714720994ea3d1f04078fe28785db3990 (patch)
treed834fe78421d5598e01cd8513b64327f2ea93686
parent6ca332db229f7a1a6c6eef45abf5ce66e1c44ec4 (diff)
downloadzipstream-php-b9f77eb714720994ea3d1f04078fe28785db3990.tar.bz2
zipstream-php-b9f77eb714720994ea3d1f04078fe28785db3990.zip
another crack at xp
-rw-r--r--zipstream.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/zipstream.php b/zipstream.php
index ed3c706..376430d 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -295,7 +295,7 @@ class ZipStream {
# build file header
$fields = array( # (from V.A of APPNOTE.TXT)
array('V', 0x04034b50), # local file header signature
- array('v', 63), # 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)
array('V', $dts), # dos timestamp
@@ -408,8 +408,8 @@ class ZipStream {
$fields = array( # (from V,F of APPNOTE.TXT)
array('V', 0x02014b50), # central file header signature
- array('v', 0x00), # version made by
- array('v', 63), # version needed to extract
+ array('v', (3 << 8) & 63), # version made by
+ array('v', 63), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', $meth), # compresion method (deflate or store)
array('V', $dts), # dos timestamp