Resolves an issue where incompatible file format appears for Zend encrypted PHP pages

Source: Internet
Author: User

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:

    1. 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.
    2. The Zend Encryption program before PHP5.2 is parsed with Zend Optimizer.
    3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.