用phpstudy运行了一套zend加密文件,报错提示: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects。
原因:
出现这种情况的原因往往是 zend 版本的问题。
当时运行的环境是 php5.3以上的版本+Zend Guard Loader v3.3
解决方式:
切换版本至 php5.2.17 + Zend Optimizer v3.3.9
注意:如果用的是phpstudy直接切换php版本就可以,不需要选择zend版本,因为已经内置好了。