以下是来自 http://www.php.net/manual/en/intro.pcntl.php 的引述
Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server environment.
在我的网络服务器上启用它有什么副作用?其中有哪些威胁和安全隐患?
非常感谢您的帮助
最佳答案
仅仅启用扩展和使用这些功能之间有很大的不同。仅启用扩展应该没有任何副作用。
另一方面,可用的功能可能会造成一些恶作剧。 Forks can be abused , signals can be sent到其他进程,告诉他们执行您可能不想执行的操作,以及 priorities of processes可以修改与 Web 服务器守护程序具有相同所有者的。
换句话说,除非您控制该机器上运行的所有 PHP,否则您不想启用它,就像在共享主机环境中一样。
https://stackoverflow.com/questions/5281244/