From 49cfc1c98e2f6d818cab6d8c86d9cffbc9284318 Mon Sep 17 00:00:00 2001 From: pabs Date: Thu, 29 Jan 2009 15:16:17 -0500 Subject: revert appnote version to 6.3 --- zipstream.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'zipstream.php') 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) -- cgit v1.2.3