推送报错如何修改php禁用函数

97330271

问题描述

正常推送但是php有报错

报错信息

![](/upload/img/20230613/136487cd53a938.png)

截图报错信息里报错文件相关代码

Workerman version:4.0.4 PHP version:7.2.33
---------------------------------------------- WORKERS -----------------------------------------------
proto user worker listen processes status
tcp root wsBusinessWorker none 2 [OK]
ssl root wsAppGateway websocket://0.0.0.0:2020 8 [OK]
tcp root Register text://0.0.0.0:1238 1 [OK]

Press Ctrl+C to stop. Start success.
Exception: client_id 2floxhshbuuxog is invalid in /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/gateway-worker/src/Lib/Context.php:131
Stack trace:

0 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/gateway-worker/src/Lib/Gateway.php(1111): GatewayWorker\Lib\Context::clientIdToAddress('2floxhshbuuxog')

1 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/gateway-worker/src/Lib/Gateway.php(882): GatewayWorker\Lib\Gateway::sendCmdAndMessageToClient('2floxhshbuuxog', 12, '', '7f0000010b57000...')

2 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/application/service/SocketEvents.php(622): GatewayWorker\Lib\Gateway::bindUid('2floxhshbuuxog', '7f0000010b57000...')

3 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/application/service/Events.php(70): app\service\SocketEvents::chatMessage('7f0000010b57000...', Array, Object(Workerman\MySQL\Connection))

4 [internal function]: app\service\Events::onMessage('7f0000010b57000...', '{"cmd":"chatMes...')

5 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/gateway-worker/src/BusinessWorker.php(404): call_user_func('app\service\Eve...', '7f0000010b57000...', '{"cmd":"chatMes...')

6 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Connection/TcpConnection.php(660): GatewayWorker\BusinessWorker->onGatewayMessage(Object(Workerman\Connection\AsyncTcpConnection), Array)

7 [internal function]: Workerman\Connection\TcpConnection->baseRead(Resource id #65, 2, Resource id #65)

8 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Events/Event.php(195): EventBase->loop()

9 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Worker.php(2408): Workerman\Events\Event->loop()

10 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/gateway-worker/src/BusinessWorker.php(197): Workerman\Worker->run()

11 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Worker.php(1541): GatewayWorker\BusinessWorker->run()

12 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Worker.php(1371): Workerman\Worker::forkOneWorkerForLinux(Object(GatewayWorker\BusinessWorker))

13 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Worker.php(1345): Workerman\Worker::forkWorkersForLinux()

14 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/vendor/workerman/workerman/Worker.php(546): Workerman\Worker::forkWorkers()

15 /www/wwwroot/kf.xiyuedaxue.cn/ai_service/start.php(37): Workerman\Worker::runAll()

16 {main}^CWorkerman[start.php] stopping ...

Workerman[start.php] has been stopped
[root@instance-qt16jc5l ai_service]#

操作系统及workerman/webman等框架组件具体版本

centos7

987 1 0
1个回答

年代过于久远,无法发表回答
×
🔝