Zendguard encrypts php code zendoptimizer and performs zend guard encryption on a small project today. After zend optimizer is installed, The 'compatible file format: the encoded file has format major ID 65540, whereas The Optimizer expects 2 in D: \ haofeng \ Apache2.2 \ www \ index. php on line 0' is incorrect. Uninstall zend optimizer and reinstall it. I checked the information online and said zend optimizer can only parse php5.2.x and earlier versions, and check that my php environment is php5.2.11.
In the afternoon, when I encrypt it again, I suddenly saw that I had to select the php version for zend guard encryption. Texture:
Note: During zend encryption, the current time of the computer should be adjusted forward, because zend encrypted files have a limited time limit;
Make sure to select the correct php version. otherwise, zend optimizer cannot resolve the issue.