From 26e10f8cca4b671fbd92c385ef4ea9cc4d9592e1 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 16 Apr 2008 20:26:22 +0000 Subject: [PATCH] fix compression zip tests --- ext/phar/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1