php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78466 file-5.36 incompatible
Submitted: 2019-08-27 16:46 UTC Modified: 2019-09-06 01:06 UTC
From: phpbugreports at gmail dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 7.2Git-2019-08-27 (Git) OS: Linux
Private report: No CVE-ID: None
 [2019-08-27 16:46 UTC] phpbugreports at gmail dot com
Description:
------------
for years now it was no problem to re-generate "data_file.c" to avoid the difference of the system command and php's file extensions

with file-5.36 from Fedora 30 this fails again and what is really bad is that the extensions builds without issues but don't work at all

what about get rid of that fork one and for all and just use the systems file-libs and just ignore the ZendMM stuff - it sucks to have such things bundeled to begin with

/usr/bin/php -d 'display_errors=0' ext/fileinfo/create_data_file.php /usr/share/misc/magic.mgc > ext/fileinfo/data_file.c

file-5.34-14.fc29.x86_64
file-5.36-3.fc30.x86_64

finfo_file(): Null byte in regex
finfo_file(): Failed identify data 0:(null)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-06 01:06 UTC] ab@php.net
-Status: Open +Status: Not a bug
 [2019-09-06 01:06 UTC] ab@php.net
Thanks for the report. Unbundling can't be done and it's not only about ZMM. Best is to use same version that is used in fileinfo, or at least a version that has a compatible magic version. If there are any data fixes needed, it can be added to the magic. If you have some data fixes, please file some issue or contribute a fix through a PR.

Thanks.
 [2019-09-06 01:14 UTC] phpbugreports at gmail dot com
the problem is that it sucks when you have differences between PHP and the CLI command all the time and at least exit the build with a clear error instead happily build a non-functional binary
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC