56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
On Apr 17, 12:37pm, Jens.Schleusener@t-online.de ("Schleusener, Jens") wrote:
|
|
-- Subject: Re: file 5.26 is now available
|
|
|
|
| Hi Christos,
|
|
|
|
|
| > File 5.26 is now available from:
|
|
| >
|
|
| > ftp://ftp.astron.com/pub/file/file-5.26.tar.gz
|
|
|
|
|
| I just compiled and installed the new version but found that "file" has at
|
|
| least now problems with PHP files.
|
|
|
|
|
| Calling "file" for e.g. for the file wordpress/wp-admin/about.php of
|
|
| the tarball wordpress-4.5.tar.gz I got the following results:
|
|
|
|
|
| file 5.26: , version .
|
|
|
|
|
| file 5.25: PHP script, ASCII text, with very long lines
|
|
|
|
|
| Checking other PHP files (also from other packages) I got mostly similar
|
|
| results. In very rare cases "file 5.26" issues correctly as before "PHP
|
|
| script, ASCII text", in some rare other cases incorrectly "C++ source,
|
|
| ASCII text" instead of the correct "PHP script, ASCII text".
|
|
|
|
|
| No idea if I did something wrong or it's a bug.
|
|
|
|
|
| Regards
|
|
|
|
|
| Jens
|
|
|
|
|
| P.S.: Just for info: The above mentioned "arbitrary" file is directly
|
|
| available for e.g. under
|
|
|
|
|
| http://fossies.org/linux/www/wordpress-4.5.tar.gz/wordpress/wp-admin/about.php?m=b
|
|
|
|
Unfortunately some new magic is problematic; here's a patch.
|
|
|
|
christo
|
|
|
|
Index: commands
|
|
===================================================================
|
|
RCS file: /p/file/cvsroot/file/magic/Magdir/commands,v
|
|
retrieving revision 1.53
|
|
diff -u -u -r1.53 commands
|
|
--- file-5.26/magic/Magdir/commands 23 Feb 2016 12:35:20 -0000 1.53
|
|
+++ file-5.26/magic/Magdir/commands 17 Apr 2016 13:51:29 -0000
|
|
@@ -101,7 +101,7 @@
|
|
0 string =<?php
|
|
>5 regex [\ \n]
|
|
>>6 string /*\ Smarty\ version Smarty compiled template
|
|
->24 regex [0-9.]+ \b, version %s
|
|
+>>>24 regex [0-9.]+ \b, version %s
|
|
!:mime text/x-php
|
|
|
|
0 string Zend\x00 PHP script Zend Optimizer data
|