summaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'zipstream.php')
-rw-r--r--zipstream.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/zipstream.php b/zipstream.php
index 8a6d67f..ec3c407 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -45,7 +45,8 @@ class ZipStream {
#
function add_file($name, $data, $time = 0) {
# compress data
- $zdata = substr(gzcompress($data), 2, -4);
+ # $zdata = substr(gzcompress($data), 2, -4);
+ $zdata = gzdeflate($data);
# calculate header attributes
$crc = crc32($data);