How does PHP read confused PHP code files?

encounter an encrypted file, use NotepadPP to open it normally, you can see that it is garbled, and then some of the code can be decompressed using: gzinflate.

but there is a problem. Look at the encrypted file in NotepadPP, which is in UTF-8 format, and then write a PHP file that also uses UTF-8 format.

the contents of the file are as follows:

<?php
$txt = file_get_contents("./en.php");
....  ....
$result = gzinflate(substr($t[1], 10, -8));
var_dump($result);

normally, it can be decompressed, but the result always suggests that NULL, is equivalent to saying that the decompression is not successful.

then found that if I am in the encrypted source file, I can extract it directly, but if I can"t extract it after opening the search with other files, it is estimated that it should be a problem of coding or garbled code. I have also tried to use fopen (". / en.php", "rb") to open binary files, but it still doesn"t work. How can I solve this problem?

this is the encrypted part of the code:

Php
Mar.23,2021

needs to be transferred to a special extension to resolve

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e631c4-459ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e631c4-459ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?