Zend Optimizer 3.3.9 不兼容的文件格式错误消息
在我的本地计算机上,我尝试部署在 PHP 5.2.10 引擎下使用 Zend Guard 进行混淆的 PHP 代码。
由于我的机器有 PHP 5.3,我认为代码无法运行,因为它是在较旧的 PHP 引擎下使用 Zend Guard 进行混淆的。
我设法将 PHP 引擎降级到 5.2.10,并配置 php.ini 以使用 ZendOptimizer-3.3.9-linux-glibc23-i386 中的相关 .so 文件。
但是,当我尝试运行我的网站时,收到以下错误消息:
致命错误:不兼容的文件格式:编码文件的格式主要 ID 为 0,而优化器预计 /var/www/mysite/index 中为 2 .php on line 0
我可能会错过什么?
On my local machine, I'm trying to deploy PHP code which was obfuscated using Zend Guard under the PHP 5.2.10 engine.
Since my machine had PHP 5.3, I reckoned the code does not run since it was obfuscated using Zend guard under the older PHP engine.
I managed to downgrade my PHP engine to 5.2.10, and also configured php.ini to use the relevant .so file from ZendOptimizer-3.3.9-linux-glibc23-i386.
However, when I try to run my website, I get the following error message:
Fatal error: Incompatible file format: The encoded file has format major ID 0, whereas the Optimizer expects 2 in /var/www/mysite/index.php on line 0
What could I be missing out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,index.php 文件已损坏。
我用正确的文件替换了它,然后收到消息“无效许可证”。
我最后不得不在主机文件中添加一行来将服务器的域解析为 localhost,因为 Zend 许可证仅对特定域有效。
It turned out that the index.php file was corrupt.
I replaced it with the correct file and then received the message "Invalid license."
I finally had to add a line in the hosts file to resolve the server's domain to localhost, since the Zend license is valid only for particular domains.