aboutsummaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'zipstream.php')
-rw-r--r--zipstream.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/zipstream.php b/zipstream.php
index f23fb8b..9323569 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -65,8 +65,6 @@ class ZipStream {
array('v', 0x00), # general purpose bit flag
array('v', 0x08), # compresion method (deflate)
array('V', $dts), # dos timestamp
- # array('v', 0x00), # file mod time (dos) FIXME
- # array('v', 0x00), # file mod date (dos) FIXME
array('V', $crc), # crc32 of data
array('V', $zlen), # compressed data length
array('V', $len), # uncompressed data length
@@ -135,8 +133,6 @@ class ZipStream {
array('v', 0x00), # general purpose bit flag
array('v', 0x08), # compresion method (deflate)
array('V', $dts), # dos timestamp
- # array('v', 0x00), # file mod time (dos) FIXME
- # array('v', 0x00), # file mod date (dos) FIXME
array('V', $crc), # crc32 of data
array('V', $zlen), # compressed data length
array('V', $len), # uncompressed data length
@@ -208,8 +204,10 @@ class ZipStream {
$d = getdate($when);
# set lower-bound on dates
- if ($d['year'] < 1980)
- $d = array('year' => 1980, 'mon' => 1, 'mday' => 1, 'hours' => 0, 'minutes' => 0, 'seconds' => 0);
+ if ($d['year'] < 1980) {
+ $d = array('year' => 1980, 'mon' => 1, 'mday' => 1,
+ 'hours' => 0, 'minutes' => 0, 'seconds' => 0);
+ }
# remove extra years from 1980
$d['year'] -= 1980;