如何一起安装 pthreads 和 Zend guardloader


How to install pthreads and Zend gaurd loader together

我在我的cPanel服务器中使用PHP 5.4.36(cli)。当我使用 pecl 安装线程时,它会抛出以下错误。

检查

检查ZTS...配置:错误:pthreads 需要 ZTS,请在启用 ZTS 的情况下重新编译 PHP

所以我继续启用 ZTS

echo -enable-maintainer-zts >> /var/cpanel/easy/apache/rawopts/all_php5

安装后,Zendguard 加载程序不起作用。

[~]# php -v

加载失败/usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so:/usr/local/Zend/

lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so: 未定义的符号: compiler_globalsPHP 5.4.36 (cli) (构建时间: Jan 20 2015 11:15:57)

请帮助任何人。

谢谢

我得到了解决方案。

cPanel 不会为 Zend Guard Loader 提供启用 ZTS 的预编译模块版本,这意味着当尝试在系统上使用 --enable-maintenanceer-zts 时,Zend Guard 加载程序将失败。因此,当将 EasyApache 或/scripts/phpextensionsmgr 安装(cPanel 安装)用于 cPanel 提供的预编译 Zend Guard Loader 时,不能使用该设置。