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
{{ message }}
Repository navigation
finfo returns wrong mime type for (.tar).xz files #11298
@weltling Hi! Is this process documented somewhere? I see ext/fileinfo/data_file.c is generated by ext/fileinfo/create_data_file.php, but I'm not sure how the patch files are related, and where/when to apply them. Also, my local magic.mgc file produces massive changes to data_file.c, some I'm guessing there's some canonical one to use?
@iluuu1994 no much docs on that and in many cases things have to be done manually. We carry magicdata.patch which has to be applied to libmagic before creating the magic db binary. That one is then used for embedding in the PHP sources.
Activity
iluuu1994 commentedon May 23, 2023
@nilllzz Thank you for the detailed report!
@weltling Hi! Is this process documented somewhere? I see ext/fileinfo/data_file.c is generated by ext/fileinfo/create_data_file.php, but I'm not sure how the patch files are related, and where/when to apply them. Also, my local magic.mgc file produces massive changes to data_file.c, some I'm guessing there's some canonical one to use?
fileinfo: Backport xz detection patch
weltling commentedon Jul 1, 2023
@iluuu1994 no much docs on that and in many cases things have to be done manually. We carry
magicdata.patchwhich has to be applied to libmagic before creating the magic db binary. That one is then used for embedding in the PHP sources.Thanks
fileinfo: Add test for xz type
NEWS: Add note for #11298
Merge branch 'PHP-8.1' into PHP-8.2
NEWS: Add note for #11298
Merge branch 'PHP-8.2'
fileinfo: Backport xz detection fix