PHP 5.4.31+Zend Guard配置问题


PHP 5.4.31 + Zend Guard configuration issue

我正在亚马逊网络服务上配置Ubuntu 14.04网络服务器。我安装了最新的PHP5.5作为基础,但我使用的是PHP Farm,这样我就可以将PHP.4.31用于需要Zend Guard的特定项目,该项目仅与5.4.x以下的PHP兼容。我将这些行添加到我的自定义PHP.ini 中

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

所以,一切都很好,但当我编译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

现在可以看出,构建是相同的,唯一的区别是:

API220100525,NTS vs. API220100525,NTS,debug

我从中了解到,PHP Zend引擎是在调试模式下运行的,但我似乎找不到如何禁用调试模式,以便激活扩展。

有什么想法吗?

我刚刚偶然发现了同样的错误。感谢Marc B的提示,我查看了PHPFarm的compile.sh

定义了一个标准选项:

--enable-debug

只需删除这一行,就可以删除中已编译的php内容

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

并使用重新编译

./compile.sh 5.x

之后,您应该有一个非调试版本,它将与ZendGuardLoader 一起使用