当尝试在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中删除pthread时,一切都恢复正常,PHP 7.0.0正常工作.
任何帮助使它从pthreads开始将不胜感激!
pthreads仅在PHP 7以后的命令行中受支持:
除了CLI SAPI之外,此版本禁用了所有pthread.
经过多年的建议,前端的多线程没有意义,我正在向硬性和快速事实提出建议.
https://github.com/krakjoe/pthreads/releases/tag/v3.0.6