Skip to content

ext/fileinfo: Fix HWPX misidentification as OOXML - #25105

Merged
LamentXU123 merged 3 commits into
php:PHP-8.6from
LamentXU123:fileinfo
Nov 10, 2026
Merged

LamentXU123 merged 3 commits into
php:PHP-8.6from
LamentXU123:fileinfo

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Follow-up #25051. I find another regression in this upgrade. The OOXML magic rule can match .png or .md filenames later in an HWPX archive which means finfo can identify it as application/octet-stream instead of application/x-hwp+zip.

Hopefully this is the last one. Beside this, I didn't find any other regressions.

I will add a NEWS entry when merging, to avoid conflicts.

@LamentXU123
LamentXU123 requested a review from a team October 31, 2026 18:29
@ndossche

Copy link
Copy Markdown
Member

CI failure is legitimate

@LamentXU123

Copy link
Copy Markdown
Member Author

@php/release-managers-86 Ping :), we now may need to chrry-pick this to 8.6.0, also #25063

@LamentXU123
LamentXU123 merged commit cf2bc03 into php:PHP-8.6 Nov 10, 2026
1 check passed
LamentXU123 added a commit that referenced this pull request Nov 10, 2026
* PHP-8.6:
  ext/fileinfo: Fix HWPX misidentification as OOXML (#25105)
mbeccati pushed a commit that referenced this pull request Nov 10, 2026
Follow-up #25051. I find another regression in this upgrade. The OOXML magic rule can match .png or .md filenames later in an HWPX archive which means finfo can identify it as application/octet-stream instead of application/x-hwp+zip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants