#1071439 file wrongly identifies php script as "C source, ASCII text"

Package:
file
Source:
file
Description:
Recognize the type of data in a file using "magic" numbers
Submitter:
Paul Gevers
Date:
2024-05-19 10:51:04 UTC
Severity:
normal
#1071439#5
Date:
2024-05-19 10:46:08 UTC
From:
To:
Hi,

To prevent missing setting the execution bit on php scripts in
bin:cacti, I use `file` in my d/rules to detect them. Lintian complains
that I miss a file and it's right.

paul@mulciber ~/packages/cacti/cacti $ file cli/remove_broken_graphs.php
cli/remove_broken_graphs.php: C source, ASCII text

I'll attach the file, which can also be found here:
https://salsa.debian.org/debian/cacti/-/raw/b57583fe4e8dafa5004135c66f7e7f547b241d4a/cli/remove_broken_graphs.php

Thanks for maintaining file.

Paul