为什么出现“;Linux主机路径”;在编码过程中;echo”;?使用PHP扩展“;PCNTL”;


Why appear "Linux host path" in the process of the code "echo"? Usage PHP extension "PCNTL"

我使用PHP扩展"PCNTL"编写了一些代码,并在终端中运行,但为什么会出现Linux主机路径"gdy@localhost:~/myDev/webroot/spider/my$"

这是我在终端中的回声

这是我的PHP代码

为什么出现Linux主机路径"gdy@localhost:~/myDev/webroot/spider/my$"

这只是shell的提示,因为PHP CODE中的父进程已经运行到最后,所以它会自然出现。这是因为您使用了pcntl_waitpidWNOHANG选项。