Error
Fatal error: Incompatible file format
Possible reasons: 1, the file itself encryption problem, it is possible that you use the Zend encryption, but because of the version of the problem, it is likely that your host on the Zend Optimizer version is too low.
2, the problem of file encoding (less likely), such as you use a non-ANSI or UTF-8 file encoding method.
3, upload the mode problem (of course, you use the built-in program, should not be the problem), upload words using binary mode may be better.
A set of PHP program is Zend Encrypted, put it in the host space to run when the following problems encountered:Fatal error:incompatible file format:the encoded file has format major ID 3, Whereas the Loader expects 4 in
After the Baidu summary, summarizes this question related information as follows:
- Starting from PHP5.3 If you want to support Zendguard encrypted PHP code, you must install Zend Guard Loader, and the old Zend Optimizer will not be supported.
- The Zend Encryption program before PHP5.2 is parsed with Zend Optimizer.
- PHP5.3 begins the Zend encryption program with Zend Guard loader parsing.
In summary, the cause of this problem is Zend Guard 5.1 updated the encryption PHP file algorithm to cater to PHP5.3 new version support, with Zend Guard old version encrypted PHP file in PHP5.3 + Zend Guard Loader environment can not be normal browsing , will report the beginning of the article error.
Workaround:
- The PHP program source files can be re-encrypted under Zend Guard 5.1 before browsing. The department has to give up this trick because it is encrypting the Commercial Code.
- You can also put the program into the PHP5.2 + Zend optimizer environment to run. The office chooses it to run this cryptographic program.
Move the space to a lower version of PHP, the environment. Excerpt before and after the host PHP environment is as follows:
- Before relocation: PHP5.3.17 + Zend Engine v2.3.0 + Zend Guard Loader v3.3
- After relocation: PHP5.2.17 + Zend Engine v2.2.0 + Zend Optimizer v3.3.9
Resolves an issue where incompatible file format appears for Zend encrypted PHP pages