summaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2007-08-23 01:39:45 -0400
committerpabs <pabs@pablotron.org>2007-08-23 01:39:45 -0400
commit53c7d09132d275b524b0540b8c6df00c849c4dae (patch)
tree7659600b2b6937946f2ab04a9b6a67e7ac2c63df /zipstream.php
parentdb81860c7c2c1bc7a68d94d62852929f80afc123 (diff)
downloadzipstream-php-53c7d09132d275b524b0540b8c6df00c849c4dae.tar.bz2
zipstream-php-53c7d09132d275b524b0540b8c6df00c849c4dae.zip
test with deflate instead of compress.
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);