Home >Backend Development >PHP Tutorial >php多线程 - php7.0.2 安装完 pthreads 后报错

php多线程 - php7.0.2 安装完 pthreads 后报错

WBOY
WBOYOriginal
2016-06-06 20:19:531703browse

系统使用的Centos6.6, 除了Mysql都是使用的编译安装
启动php-fpm时候报错如下:

<code>Starting php-fpm [18-Jan-2016 18:09:29] NOTICE: PHP message: PHP Fatal error:  The fpm-fcgi SAPI is not supported by pthreads in Unknown on line 0
[18-Jan-2016 18:09:29] NOTICE: PHP message: PHP Fatal error:  Unable to start pthreads module in Unknown on line 0
</code>

回复内容:

系统使用的Centos6.6, 除了Mysql都是使用的编译安装
启动php-fpm时候报错如下:

<code>Starting php-fpm [18-Jan-2016 18:09:29] NOTICE: PHP message: PHP Fatal error:  The fpm-fcgi SAPI is not supported by pthreads in Unknown on line 0
[18-Jan-2016 18:09:29] NOTICE: PHP message: PHP Fatal error:  Unable to start pthreads module in Unknown on line 0
</code>

The fpm-fcgi SAPI is not supported by pthreads

支持 PHP 7 的 pthreads v3 只支持通过 cli 命令行来调用,不支持其他的 sapi

如何通过cli调用?有例子吗?谢谢

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn