From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 19 03:37:58 2020
Received: (at submit) by debbugs.gnu.org; 19 Dec 2020 08:37:59 +0000
Received: from localhost ([127.0.0.1]:40797 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1kqXkU-000551-63
for submit@debbugs.gnu.org; Sat, 19 Dec 2020 03:37:58 -0500
Received: from lists.gnu.org ([209.51.188.17]:45444)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1kqXkS-00054s-Ov
for submit@debbugs.gnu.org; Sat, 19 Dec 2020 03:37:57 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:32892)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1kqXkS-0002AH-GV
for bug-coreutils@gnu.org; Sat, 19 Dec 2020 03:37:56 -0500
Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:45581)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1kqXkP-0007ot-N5
for bug-coreutils@gnu.org; Sat, 19 Dec 2020 03:37:56 -0500
Received: by mail-io1-xd33.google.com with SMTP id n4so4288127iow.12
for ; Sat, 19 Dec 2020 00:37:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=/8Goz1xyITLE9HcqSWKni0r+keWSdICzJdy4n5oMtkU=;
b=IPqiUvdxlcju7zCLRv6vMeqnmuXZIit2VQZMmQjOu998cIrgnlheFtm2e64l/FJze0
PfTSiz0LOgmpa+c/anqMkgQN7g3TeUP0/3RqEYmITX+FuFyJwAj2uPgG4MpjGMEgbu0B
8gKh/KT/0mfwZjdiOkrJ0q4C8EV/fA9cksTerg7lEDomYvYG4RdeIwRJC2F4kCLNLVCK
bEl/p1nlYIcXp1T6yEubA3qmLHRi3GkryjaIAqhgfByJCcTCfGXlIWw52/63/uq+DZxb
MJkjB6+w03OizBgZr1VtQT3WH+0FhJgT1vQzdkDFRoxmHZNlluIoXXaSkl/bKF7MoHj/
+qlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:reply-to:from:date:message-id
:subject:to:content-transfer-encoding;
bh=/8Goz1xyITLE9HcqSWKni0r+keWSdICzJdy4n5oMtkU=;
b=aeqcY+tnOFfFq64c+/Rib5NqE1Ii0q6TQ7f/O2f61xyTpBw3KIGLneDj84n2GKbYmR
wrOEeUsScK3PVrwhK9FxxMbwojOqCWXp23yQtgN1ZKFLKt/hrtwU8N9FVr+L7c7XzqOR
8rDd1lRspjcKR2dCrkqj/aytXAEIAjeqZRMDxSaCngf4yD5u6uhWmqvVnfLT7hvz/i1d
HuoS47H/9Yl/Vokar9bWtSdjs2SSFkEQY4xjAXgw2vQlEL4ciblDPGtgYPOnz8avqgx7
HQ1vw0xw4UEqtvDPTOKK+4gg4sRxKREl1SYuywhPgfePEuEcUjEG7bCmftpPEnSTdBds
2CBw==
X-Gm-Message-State: AOAM533g8pdgt26FKdJLd8lxt2OH1mU1+8EGxht3dkPUgT1dfUwR5DJ8
t9E7l1QtdoRhcP1c0WgyxsJzKaNQXjbz+Y/32e8xZhtZXUY=
X-Google-Smtp-Source: ABdhPJy3C9GpTy3ylnQl1eDEbINVTfjqhDC3ntadQ0KMDH9sClvqUeRAmYDAOv6e3eTaA6UTh00fyn4F1LKNI6kq4/8=
X-Received: by 2002:a02:7f41:: with SMTP id r62mr7399561jac.17.1608367071623;
Sat, 19 Dec 2020 00:37:51 -0800 (PST)
MIME-Version: 1.0
From: Jeffrey Walton
Date: Sat, 19 Dec 2020 03:37:40 -0500
Message-ID:
Subject: file -b reports PHP file as C++ file
To: bug-coreutils@gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::d33;
envelope-from=noloader@gmail.com; helo=mail-io1-xd33.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Reply-To: noloader@gmail.com
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -2.3 (--)
Hi Everyone,
I'm not sure if this is expected. I'm working on CentOS 7, x86_64,
fully patched.
I expected to see the PHP file below classified as a PHP script, like:
# file -b rest.php
PHP script, ASCII text
I did not see any Gotcha's listed for the file command at
https://www.pixelbeat.org/docs/coreutils-gotchas.html.
Jeff
# file --version
file-5.11
magic file from /etc/magic:/usr/share/misc/magic
# ls -Al profileinfo.php
-rw-r----- 1 root apache 12531 Sep 24 17:35 profileinfo.php
# file -b profileinfo.php
C++ source, UTF-8 Unicode text
# cat profileinfo.php
Profiling data
Disabled
'
. '';
exit( 1 );
}
$dbr =3D wfGetDB( DB_REPLICA );
if ( !$dbr->tableExists( 'profiling' ) ) {
echo 'No profiling
table exists, so we can\'t show
you anything.
'
. 'If you want to log profiling data, enable
$wgProfiler[\'output\'] =3D \'db\'
'
. ' in LocalSettings.php and run maintenance/update.php
to'
. ' create the profiling table.'
. '