diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 243b176e22c..a8ef9536ec4 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -30,7 +30,7 @@ static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_ui return FAILURE; } /* clean up header for big-endian systems */ - if (h.header.tag != "nu") { + if (h.header.tag[0] != 'n' || h.header.tag[1] != 'u') { /* skip to next header */ php_stream_seek(fp, h.header.size, SEEK_CUR); len -= h.header.size + 4;