解决Zend加密的PHP页面出现Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in

打开php页面出现如下错误:

Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in

可能是以下原因:

1.未安装php解密扩展;

2.未安装相应的php解密扩展。

由于Zend Guard 5.1版本更新了加密算法,5.1版本与5.0版本分别使用了两套相互不兼容的加密算法,对应的解密算法也不再兼容。

因此,用Zend Guard 5.1加密只能运行在php5.3+zend guard loader及后环境上,无法运行在php5.2+zend optimizer及前环境上。

相应,用Zend Guard 5.0加密只能运行在php5.2+zend optimizer及前环境上,无法运行在php5.3+zend guard loader及后环境上。