简体   繁体   English

PHP 5.4.31 + Zend Guard配置问题

[英]PHP 5.4.31 + Zend Guard configuration issue

I am configuring a Ubuntu 14.04 web server at Amazon Web Services. 我正在Amazon Web Services上配置Ubuntu 14.04 Web服务器。 I have the latest PHP5.5 installed as base, but I am using PHP Farm so that I can use PHP5.4.31 for a specific project that requires Zend Guard, which is only compatible with PHP up to 5.4.x. 我已经安装了最新的PHP5.5作为基础,但是我正在使用PHP Farm,以便可以将PHP5.4.31用于需要Zend Guard的特定项目,该项目仅与5.4.x以下的PHP兼容。 I added these lines to my custom php.ini 我将这些行添加到我的自定义php.ini中

zend_extension=/usr/local/php/ioncube_loader_lin_5.4.so
zend_extension=/usr/local/php/ZendGuardLoader.so

So, everything works fine, but when I compile the PHP custom build I get this in the end: 因此,一切正常,但是当我编译PHP自定义构建时,最终得到了这一点:

Cannot load the ionCube PHP Loader - it was built with configuration API220100525,NTS, whereas running engine is API220100525,NTS,debug
Cannot load Zend Guard Loader - it was built with configuration API220100525,NTS, whereas running engine is API220100525,NTS,debug

Now from what can be seen, the builds are the same, the only differnce is: 现在可以看出,构建是相同的,唯一的区别是:

API220100525,NTS vs. API220100525,NTS,debug

What I understand from this is that the PHP Zend Engine is running in Debug mode, but I can't seem to find how to disable debug mode so that the extensions can be activated. 我从中了解到,PHP Zend Engine在调试模式下运行,但是我似乎找不到如何禁用调试模式以便可以激活扩展的方法。

Any ideas? 有任何想法吗?

I just stumbled upon the same error. 我只是偶然发现了同样的错误。 Thanks to Marc B's hint I had a look into PHPFarm's compile.sh 感谢Marc B的提示,让我了解了PHPFarm的compile.sh

There's a standard-option defined: 定义了一个标准选项:

--enable-debug

just remove this line, delete your compiled php stuff in 只需删除此行,删除其中的已编译php内容

/path/to/phpfarm/src/php-5.x 

and recompile with 并重新编译

./compile.sh 5.x

Afterwards you should have a non-debug version which will work with ZendGuardLoader 之后,您应该有一个非调试版本,它将与ZendGuardLoader一起使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM