PHP 7中的多线程
作者:互联网
如何在PHP7中进行多线程处理?我看到的pthread的第一个问题直接来自PHP手册.
https://secure.php.net/manual/en/intro.pthreads.php
The pthreads extension cannot be used in a web server environment. Threading in PHP should therefore remain to CLI-based applications only.
可以安全地监视此警告,并在HTTP请求上生成一些线程吗?
解决方法:
Is is safe to oversee this warning, and spawn some threads on HTTP requests?
该扩展本身禁止在CLI之外的任何地方进行加载:尝试加载任何其他SAPI都将导致致命错误.
标签:php-7,pthreads,php 来源: https://codeday.me/bug/20191111/2021782.html