summaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'zipstream.php')
-rw-r--r--zipstream.php7
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)