[File] [PATCH] commands: php: More magic for PHP related files

Christos Zoulas christos at zoulas.com
Fri Apr 29 21:51:19 UTC 2022


Is there more to the patch than what was committed?

revision 1.69
date: 2022-04-20 17:14:23 -0400;  author: christos;  state: Exp;  lines: +27 -1;  commitid: TqIrF0aWneuI2ZAD;
More PHP magic from Anatol Belski


christos

> On Apr 29, 2022, at 12:58 PM, Anatol Belski <ab at php.net> wrote:
> 
> On Wed, 2022-04-20 at 17:41 +0200, Anatol Belski wrote:
>> Signed-off-by: Anatol Belski <ab at php.net>
>> ---
>> magic/Magdir/commands | 26 ++++++++++++++++++++++++++
>> 1 file changed, 26 insertions(+)
>> 
>> diff --git a/magic/Magdir/commands b/magic/Magdir/commands
>> index 7265ebb1..d7e4adca 100644
>> --- a/magic/Magdir/commands
>> +++ b/magic/Magdir/commands
>> @@ -153,6 +153,32 @@
>> 
>> 0  string  Zend\x00  PHP script Zend
>> Optimizer data
>> 
>> +# From: Anatol Belski <ab at php.net>
>> +0  string  OPCACHE
>> +>7  ubyte  0  PHP opcache filecache
>> data
>> +
>> +0  search/64  --TEST--
>> +>16  search/64  --FILE--
>> +>24  search/8192  --EXPECT  PHP core test
>> +!:ext  phpt
>> +
>> +# https://www.php.net/manual/en/phar.fileformat.signature.php
>> +-4  string  GBMB  PHP phar archive
>> +>-8  ubyte  0x1  with MD5 signature
>> +!:ext  phar
>> +>-8  ubyte  0x2  with SHA1 signature
>> +!:ext  phar
>> +>-8  ubyte  0x3  with SHA256 signature
>> +!:ext  phar
>> +>-8  ubyte  0x4  with SHA512 signature
>> +!:ext  phar
>> +>-8  ubyte  0x10  with OpenSSL
>> signature
>> +!:ext  phar
>> +>-8  ubyte  0x11  with OpenSSL SHA256
>> signature
>> +!:ext  phar
>> +>-8  ubyte  0x12  with OpenSSL SHA512
>> signature
>> +!:ext  phar
>> +
>> 0  string/t  $!  DCL command file
>> 
>> # Type: Pdmenu
>> --
>> 2.35.3
>> 
> 
> Ping on this one. Seems the patch arrived more than once, perhaps the
> mail was filtered? A review is welcome otherwise.
> 
> Regards
> 
> Anatol
> --
> File mailing list
> File at astron.com <mailto:File at astron.com>
> https://mailman.astron.com/mailman/listinfo/file <https://mailman.astron.com/mailman/listinfo/file>
> 
> --
> This message has been 'sanitized'. This means that potentially
> dangerous content has been rewritten or removed. The following
> log describes which actions were taken.
> 
> Sanitizer (start="1651263108"):
> Split unusually long word(s) in header.
> SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
> Match (names="unnamed.txt", rule="9"):
> Enforced policy: accept
> 
> Total modifications so far: 1
> 
> 
> Anomy 0.0.0 : Sanitizer.pm
> $Id: Sanitizer.pm,v 1.94 2006/01/02 16:43:10 bre Exp $

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20220429/1b8eb5cb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20220429/1b8eb5cb/attachment-0001.asc>


More information about the File mailing list