求助:Warning: (null)(): supplied resource is not a valid stream resource in Unknown on line 0

0

reload stop restart都会有如标题的错误日志 实在是不懂这个错误是从哪里触发的 所以求助来了
PHP 7.4.19


workerman 4.0.6


使用示例代码 版本 4.0.19 一样会现这样的错误


strace进程得的到内容:


epoll_wait(5, 0x55a3957cc3c0, 32, -1) = -1 EINTR (Interrupted system call)
--- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_USER, si_pid=629596, si_uid=0} ---
write(7, "\n", 1) = 1
rt_sigreturn({mask=[]}) = -1 EINTR (Interrupted system call)
epoll_wait(5, [{EPOLLIN, {u32=6, u64=6}}], 32, -1) = 1
read(6, "\n", 1024) = 1
read(6, 0x7f1ddb43a360, 1024) = -1 EAGAIN (Resource temporarily unavailable)
getpid() = 629597
getpid() = 629597
epoll_ctl(5, EPOLL_CTL_DEL, 4, 0x7ffcd7873a9c) = 0
close(4) = 0
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
rt_sigaction(SIGUSR1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
rt_sigaction(SIGUSR2, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
rt_sigaction(SIGIO, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f1ddd398210}, NULL, 8) = 0
close(3) = 0
openat(AT_FDCWD, "/var/log/php_errors.log", O_WRONLY|O_CREAT|O_APPEND, 0644) = 3
write(3, "[24-Jun-2021 15:20:36 PRC] PHP W"..., 121) = 121
close(3) = 0
write(1, "\nWarning: (null)(): supplied res"..., 90) = 90
openat(AT_FDCWD, "/var/log/php_errors.log", O_WRONLY|O_CREAT|O_APPEND, 0644) = 3
write(3, "[24-Jun-2021 15:20:36 PRC] PHP W"..., 121) = 121
close(3) = 0
write(1, "\nWarning: (null)(): supplied res"..., 90) = 90
umask(022) = 000
close(2) = 0
close(1) = 0
close(0) = 0
epoll_ctl(5, EPOLL_CTL_DEL, 6, 0x7ffcd787b30c) = 0
close(6) = 0
close(7) = 0
close(5) = 0
munmap(0x7f1dda600000, 2097152) = 0
munmap(0x7f1ddae35000, 650344) = 0
munmap(0x7f1ddaf02000, 95864) = 0
munmap(0x7f1ddaee7000, 107752) = 0
munmap(0x7f1ddaed4000, 76840) = 0
munmap(0x7f1ddb45f000, 168920) = 0
munmap(0x7f1ddb43b000, 143784) = 0
munmap(0x7f1ddb403000, 227192) = 0
munmap(0x7f1ddabfc000, 196608) = 0
munmap(0x7f1ddb200000, 2097152) = 0
munmap(0x7f1ddab0a000, 659456) = 0
munmap(0x7f1ddb4b2000, 135168) = 0
exit_group(0) = ?
+++ exited with 0 +++

已邀请:

ncwsky

赞同来自:

workerman 4.0.6

要回复问题请先登录注册