aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2007-08-22 23:24:17 -0400
committerpabs <pabs@pablotron.org>2007-08-22 23:24:17 -0400
commitb00dfcf4e9fe84e403cd26d5647ac689e9b7e459 (patch)
tree53e68fc03ccaac2a644f55e1116dec809b7fbe74
parenta961c0ff311ff0a706ee81a11be0225dace5bfc3 (diff)
downloadzipstream-php-b00dfcf4e9fe84e403cd26d5647ac689e9b7e459.tar.bz2
zipstream-php-b00dfcf4e9fe84e403cd26d5647ac689e9b7e459.zip
correct ordering of arguments to add_cdr_file().
-rw-r--r--zipstream.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/zipstream.php b/zipstream.php
index 7e55fd1..e09a3ce 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -117,7 +117,7 @@ class ZipStream {
###################
function add_to_cdr($name, $time, $crc, $zlen, $len, $full_len) {
- $this->files[] = array($this->ofs, $name, $time, $crc32, $zlen, $len);
+ $this->files[] = array($name, $time, $crc32, $zlen, $len, $this->ofs);
$this->ofs += $full_len;
}
@@ -130,8 +130,8 @@ class ZipStream {
array('v', 0x14), # version needed to extract
array('v', 0x00), # general purpose bit flag
array('v', 0x08), # compresion method (deflate)
- array('v', 0x08), # file mod time (dos) FIXME
- array('v', 0x08), # file mod date (dos) FIXME
+ 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