Skip to content

Commit eaa6325

Browse files
authored
ext/phar: remove PHAR_HDR_COMPRESSION* flags as they are unused (php#22504)
1 parent f8d682f commit eaa6325

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

ext/phar/phar.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,6 @@ static zend_result phar_parse_pharfile(php_stream *fp, const char *fname, size_t
831831

832832
SAFE_PHAR_GET_32(buffer, endbuffer, manifest_flags);
833833

834-
manifest_flags &= ~PHAR_HDR_COMPRESSION_MASK;
835834
manifest_flags &= ~PHAR_FILE_COMPRESSION_MASK;
836835
/* remember whether this entire phar was compressed with gz/bzip2 */
837836
manifest_flags |= compression;

ext/phar/phar_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
#define PHAR_API_MAJORVER_MASK 0xF000
3939
#define PHAR_API_VER_MASK 0xFFF0
4040

41-
#define PHAR_HDR_COMPRESSION_MASK 0x0000F000
42-
#define PHAR_HDR_COMPRESSED_NONE 0x00000000
43-
#define PHAR_HDR_COMPRESSED_GZ 0x00001000
44-
#define PHAR_HDR_COMPRESSED_BZ2 0x00002000
4541
#define PHAR_HDR_SIGNATURE 0x00010000
4642

4743
/* flags for defining that the entire file should be compressed */

0 commit comments

Comments
 (0)