From: Greg Beaver Date: Wed, 16 Apr 2008 20:26:22 +0000 (+0000) Subject: fix compression zip tests X-Git-Tag: RELEASE_2_0_0b1~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26e10f8cca4b671fbd92c385ef4ea9cc4d9592e1;p=php fix compression zip tests --- diff --git a/ext/phar/util.c b/ext/phar/util.c index 210088619b..641b54f863 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -682,7 +682,7 @@ int phar_open_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) return FAILURE; } } - if (!(entry->flags & PHAR_ENT_COMPRESSION_MASK)) { + if ((entry->old_flags && !(entry->old_flags & PHAR_ENT_COMPRESSION_MASK)) || !(entry->flags & PHAR_ENT_COMPRESSION_MASK)) { return SUCCESS; } if (!phar->ufp) {