aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2007-08-23 02:23:40 -0400
committerpabs <pabs@pablotron.org>2007-08-23 02:23:40 -0400
commit86382ea71cf242b15efd86b6bc2555ede8f451c0 (patch)
treebc29be761cd2bc299adcfd006990f0063ed2891d
parent67303b5f12085d454e755bfe2596f53e9ebaae4b (diff)
downloadzipstream-php-86382ea71cf242b15efd86b6bc2555ede8f451c0.tar.bz2
zipstream-php-86382ea71cf242b15efd86b6bc2555ede8f451c0.zip
minor formatting cleanups.
-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;