workman启动时报错

云上屹立君

Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \ (T_NS_SEPARATOR) in /www/wwwroot/xxxx/xxxxx/vendor/zendframework/zend-diactoros/src/functions/marshal_headers_from_sapi.php on line 10

请问这是什么问题,在本地windows系统使用bat启动没有问题,但是上到linux服务器使用命令行 php start.php start -d 启动就报以上错误。怎么解决呢这个

1617 1 0
1个回答

latin

这个不是workerman的报错,看起来是zendframework 的报错。是不是php版本低了?

  • 云上屹立君 2020-01-19

    找到问题了。是php-cli的版本低了。跑的是php7.2的服务,却是5.6的cli。

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