You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can check what file(1) reports (the version of file(1) is usually relevant). PHP 8.4 and master are currently using a patched 5.45; 5.46 has been recently released. We should likely update master, and possibly back-port a fix for this issue.
I'll do the necessary backport for fixing this, but hold off the 5.46 update on master until a later time, just in case that a newer file version would be released before PHP8.5 enters feature freeze (to avoid double work)
EDIT: identified commit needed for backport: file/file@ad925d3
Activity
devnexen commentedon Dec 4, 2024
So it might seem a database update issue, if I take data_file.c from 8.3 I get the proper mime type. @petk thoughts ?
cmb69 commentedon Dec 4, 2024
One can check what
file(1)reports (the version offile(1)is usually relevant). PHP 8.4 and master are currently using a patched 5.45; 5.46 has been recently released. We should likely update master, and possibly back-port a fix for this issue.devnexen commentedon Dec 4, 2024
Good point file from debian unstable/ubuntu 24.10 is 5.45 both returns the same result whereas file on my mac, 5.41, returns php.
cmb69 commentedon Dec 4, 2024
Looks like the issue has already been fixed for 5.46:
ndossche commentedon Dec 4, 2024
I have experience with updating fileinfo and patching it, I'll handle this.
ndossche commentedon Dec 4, 2024
I'll do the necessary backport for fixing this, but hold off the 5.46 update on master until a later time, just in case that a newer
fileversion would be released before PHP8.5 enters feature freeze (to avoid double work)EDIT: identified commit needed for backport: file/file@ad925d3
Fix phpGH-17039: PHP 8.4: Incorrect MIME content type
Fix GH-17039: PHP 8.4: Incorrect MIME content type
Merge branch 'PHP-8.4'