timer 查看状态的时候 使用 命令 strace -p pid 输出的内容中 有以下 报错

51yourdream

timer 查看状态的时候
使用 命令 strace -p pid 输出的内容中 有以下 报错
workerman/React/EventLoop/LoopInterface.php", 0x7fffbfdbd780) = -1 ENOENT (No such file or directory)
/workerman/../React/EventLoop/LoopInterface.php", 0x7fffbfdbd780) = -1 ENOENT (No such file or directory)

2700 1 0
1个回答

walkor

这个不是报错,是在运行status命令时主进程调用了interface_exists('\React\EventLoop\LoopInterface')判断LoopInterface这个接口是否存在,触发自动加载机制在磁盘查找一次对应的文件是否存在,如果不存在就说明没有使用ReactPHP,stat返回-1ENOENT (No such file or directory)是正常的。ReactPHP仅仅在异步mysql 异步redis等异步组件中用到,不是每个环境都需要安装ReactPHP,都有对应的接口文件。

  • 暂无评论
年代过于久远,无法发表回答
🔝