【问题标题】:PHP 7.0.0 with pthreads 3.1.5 on Windows can't startWindows 上带有 pthreads 3.1.5 的 PHP 7.0.0 无法启动
【发布时间】:2015-12-15 15:35:21
【问题描述】:

在 Windows 7 系统上尝试使用 pthreads 3.1.5 (x64) 启动 PHP 7.0.0 (VC14 x64 Thread Safe 2015-Dec-03 20:07:26) 时,我收到以下错误消息:

php-cgi.exe -b 127.0.0.1:8745 -c php.ini
PHP Fatal error:  The cgi-fcgi SAPI is not supported by pthreads in Unknown on line 0
PHP Fatal error:  Unable to start pthreads module in Unknown on line 0

当从 php.ini 中删除 pthreads 时,一切都恢复正常并且 PHP 7.0.0 可以正常工作。

任何帮助它从 pthreads 开始将不胜感激!

【问题讨论】:

    标签: php pthreads php-7


    【解决方案1】:

    pthreads 仅在 PHP 7 以后的命令行上受支持:

    此版本禁用除 C​​LI SAPI 之外的所有 pthread。

    在多年建议前端多线程没有意义之后,我将建议推广到硬性事实。

    https://github.com/krakjoe/pthreads/releases/tag/v3.0.6

    【讨论】:

      猜你喜欢
      • 2017-06-04
      • 2018-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多