thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Warning: (null)(): supplied resource is not a valid stream resource in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Warning: (null)(): supplied resource is not a valid stream resource in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
php 发生coredump了,一般是用了不稳定的php版本或者不稳定的php扩展。少部分情况是特殊用法触发了php的bug。
谢谢大佬,php版本是7.3.10的。这种情况没有办法可以查看是哪个扩展的问题吗?
之前在本地7.3.9的一直没问题,现在准备上线让负责服务器的运维帮忙安装环境和扩展这些的。没有具体排查方案不太好跟对方说呢。
@8132:以前我用过一次7.2的,也是引起奇葩的bug,根本不知道怎么差,扩展都卸完了也没用,后面急上线,直接换7.1的, 问题完美解决,你要是急得话,建议换个版本试试
@8076:我先看一下,有没有办法找出来是哪里的问题。上线还不着急,就是这个问题比较难找。
@walko 上面这个问题,我试了用workerman的demo跟 webman的 demo 发现只有webman会,求佬大支支招。
没有环境,这个不好给你定位。把业务逻辑都去掉试下。
@1:我是直接下载webman的demo来测试的,没有业务代码。
刚刚看php错误日志发现了这个。
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
0 [internal function]: {closure}(2, '(null)(): suppl...', 'Unknown', 0, NULL)
1 {main}
thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
0 [internal function]: {closure}(2, '(null)(): suppl...', 'Unknown', 0, NULL)
1 {main}
thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
0 [internal function]: {closure}(2, '(null)(): suppl...', 'Unknown', 0, NULL)
1 {main}
thrown in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Warning: (null)(): supplied resource is not a valid stream resource in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Warning: (null)(): supplied resource is not a valid stream resource in Unknown on line 0
[23-Jul-2021 11:04:16 Asia/Shanghai] PHP Fatal error: Uncaught ErrorException: (null)(): supplied resource is not a valid stream resource in Unknown:0
Stack trace:
0 [internal function]: {closure}(2, '(null)(): suppl...', 'Unknown', 0, NULL)
1 {main}
thrown in Unknown on line 0
@8132 php -v 一下看看精准版本 我前段时间也遇到 laravel版本挑PHP版本的问题 很有可能特定版本的一些函数行为有异常
@8059:谢谢,问题已经解决了。原来是php装了swoole扩展,去掉之后就正常了