View Issue Details

IDProjectCategoryView StatusLast Update
0017964CentOS-7filepublic2020-12-28 03:58
Reporternoloader 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version7.9.2009 
Target VersionFixed in Version 
Summary0017964: file -b misclassifies PHP file as C++ file
DescriptionI'm working on CentOS 7, x86_64, fully patched.

'file -b' works well for some (most?) PHP files:

    # file -b rest.php
    PHP script, ASCII text

However, it returns C++ for some PHP files:

    # file -b profileinfo.php
    C++ source, UTF-8 Unicode text
Steps To ReproducePlease run file(1) on the PHP file profileinfo.php.zip. The file is attached.

profileinfo.php.txt.zip is the result of 'file -b -d profileinfo.php'.
Additional InformationThe files(1) man page says to report bugs at bugs.gw.com. The site is dead and none of the URLs work. The bug report was filed at the distro rather than the package. Sorry about that.

$ man 1 file
...

BUGS
     Please report bugs and send patches to the bug tracker at
     http://bugs.gw.com/ or the mailing list at ⟨file@mx.gw.com⟩.

And:

    # lsb_release -a
    LSB Version: :core-4.1-amd64:core-4.1-noarch
    Distributor ID: CentOS
    Description: CentOS Linux release 7.9.2009 (Core)
    Release: 7.9.2009
    Codename: Core

TagsNo tags attached.
abrt_hash
URL

Activities

noloader

noloader

2020-12-19 18:50

reporter  

profileinfo.php.zip (4,379 bytes)
profileinfo.php.txt.zip (48,820 bytes)
noloader

noloader

2020-12-19 18:52

reporter   ~0038123

My bad, this should have been included:

    # file --version
    file-5.11
    magic file from /etc/magic:/usr/share/misc/magic

    # rpm -qa file
    file-5.11-37.el7.x86_64

Issue History

Date Modified Username Field Change
2020-12-19 18:50 noloader New Issue
2020-12-19 18:50 noloader File Added: profileinfo.php.zip
2020-12-19 18:50 noloader File Added: profileinfo.php.txt.zip
2020-12-19 18:52 noloader Note Added: 0038123