From 53c7d09132d275b524b0540b8c6df00c849c4dae Mon Sep 17 00:00:00 2001 From: pabs Date: Thu, 23 Aug 2007 01:39:45 -0400 Subject: test with deflate instead of compress. --- zipstream.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zipstream.php') 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); -- cgit v1.2.3