From b00dfcf4e9fe84e403cd26d5647ac689e9b7e459 Mon Sep 17 00:00:00 2001 From: pabs Date: Wed, 22 Aug 2007 23:24:17 -0400 Subject: correct ordering of arguments to add_cdr_file(). --- zipstream.php | 6 +++--- 1 file 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 -- cgit v1.2.3