diff options
author | pabs <pabs@pablotron.org> | 2009-01-29 15:16:17 -0500 |
---|---|---|
committer | pabs <pabs@pablotron.org> | 2009-01-29 15:16:17 -0500 |
commit | 49cfc1c98e2f6d818cab6d8c86d9cffbc9284318 (patch) | |
tree | e530a69f14194b3dd775457d524f72127bfccb79 | |
parent | cfad6d086799b2c30cd85f386ec387e8af9a2a3e (diff) | |
download | zipstream-php-49cfc1c98e2f6d818cab6d8c86d9cffbc9284318.tar.bz2 zipstream-php-49cfc1c98e2f6d818cab6d8c86d9cffbc9284318.zip |
revert appnote version to 6.3
-rw-r--r-- | zipstream.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/zipstream.php b/zipstream.php index 63413e4..78fceac 100644 --- a/zipstream.php +++ b/zipstream.php @@ -221,7 +221,8 @@ class ZipStream { # Parameters: # # $name - name of file in archive (including directory path). - # $path - path to file on disk. + # $path - path to file on disk (note: paths should be encoded using + # UNIX-style forward slashes -- e.g '/path/to/some/file'). # $opt - Hash of options for file (optional, see "File Options" # below). # @@ -297,7 +298,7 @@ class ZipStream { # build file header $fields = array( # (from V.A of APPNOTE.TXT) array('V', 0x04034b50), # local file header signature - array('v', 0x14), # 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 @@ -410,7 +411,7 @@ class ZipStream { $fields = array( # (from V,F of APPNOTE.TXT) array('V', 0x02014b50), # central file header signature - array('v', 0x14), # version made by + 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) |