summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_source_zip.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-07 23:24:11 +0000
committerPierre Joye <pajoye@php.net>2008-08-07 23:24:11 +0000
commit490a34220583be5eee4ad2e8be56e9e285ec0e74 (patch)
tree8b67a365ee193b545a0c067c23c478e8d5fcbe06 /ext/zip/lib/zip_source_zip.c
parentc94f8b4a1cb303bebc22ca83d09a05064877bf4b (diff)
downloadphp-git-490a34220583be5eee4ad2e8be56e9e285ec0e74.tar.gz
- MFH: update to 0.9 (torrentzip support, files open only when necessary), windows fixes
Diffstat (limited to 'ext/zip/lib/zip_source_zip.c')
-rw-r--r--ext/zip/lib/zip_source_zip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/zip/lib/zip_source_zip.c b/ext/zip/lib/zip_source_zip.c
index bf166b3519..58119dd39f 100644
--- a/ext/zip/lib/zip_source_zip.c
+++ b/ext/zip/lib/zip_source_zip.c
@@ -57,6 +57,8 @@ zip_source_zip(struct zip *za, struct zip *srcza, int srcidx, int flags,
struct zip_source *zs;
struct read_zip *p;
+ /* XXX: ZIP_FL_RECOMPRESS */
+
if (za == NULL)
return NULL;
@@ -74,7 +76,7 @@ zip_source_zip(struct zip *za, struct zip *srcza, int srcidx, int flags,
if (len == 0)
len = -1;
- if (start == 0 && len == -1)
+ if (start == 0 && len == -1 && (flags & ZIP_FL_RECOMPRESS) == 0)
flags |= ZIP_FL_COMPRESSED;
else
flags &= ~ZIP_FL_COMPRESSED;