diff options
author | Pierre Joye <pajoye@php.net> | 2008-08-07 23:24:11 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-08-07 23:24:11 +0000 |
commit | 490a34220583be5eee4ad2e8be56e9e285ec0e74 (patch) | |
tree | 8b67a365ee193b545a0c067c23c478e8d5fcbe06 /ext/zip/lib/zip_source_zip.c | |
parent | c94f8b4a1cb303bebc22ca83d09a05064877bf4b (diff) | |
download | php-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.c | 4 |
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; |