在 PHP 上启用 ZTS 无需编译 [英] Enable ZTS on PHP without compiling

查看:40
本文介绍了在 PHP 上启用 ZTS 无需编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 PECL 安装 pthreads 时,安装提示我必须启用 ZTS:

When I try to install pthreads with PECL, the installation says that I must enable ZTS:

configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

我已经使用 Apt 包管理器安装了 PHP,我不想用自编译版本替换该安装.

I've installed PHP with Apt package manager and I don't want to have to replace that install with a self-compiled version.

如何在不手动编译的情况下启用 ZTS?

How can I enable ZTS without manual compiling?

推荐答案

你不能;Zend Thread Safety 只是一个编译时选项.

You cannot; Zend Thread Safety is a compile time, only, option.

要么找一个由其他人维护的线程安全包,要么自己构建.

Either find a thread safe package being maintained by someone else, or build yourself.

这篇关于在 PHP 上启用 ZTS 无需编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆