GatewayWorker最新版会报错 event拓展实例EventBase不允许序列化

willow152


EventBase instances are not serializable in GatewayWorker/vendor/workerman/gateway-worker/src/Protocols/GatewayProtocol.php:204

GatewayWorker最新版会报错 php8所有版本都试了,都报错,workman5.1

event拓展实例EventBase不允许序列化

116 1 0
1个回答

看下客户端发了什么数据

  • willow152 4天前

    我打印出来,序列化的是\Workerman\Protocols\Http\Request对象,这个实例不允许实例化

  • willow152 4天前

    定义的是个http协议 $gateway = new Gateway('http://0.0.0.0:3939'); gatewayworker 3.0.19上可以运行,新版本跑不起来

  • walkor 4天前

    gatewayWorker不支持http协议

  • willow152 4天前

    好吧 那还是不升级了,就用旧版本好了

🔝