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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbugreports at gmail dot com
New email:
PHP Version: OS:

 

 [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 Apr 19 23:01:28 2024 UTC