报错信息:
default.ERROR: 系统异常 {"error_msg":"[object] (ErrorException(code: 0): Creating default object from empty value at /home/wwww/app/vendor/workerman/webman-framework/src/App.php:179)","file":"/home/wwww/app/vendor/workerman/webman-framework/src/App.php","code":0,"line":179}
依赖版本:
"workerman/webman-framework": "^1.3.0"
频率挺高的,项目可以正常运行。不知道是哪里调用出了问题,还是框架自身启动的时候出的问题。求大佬帮帮忙!
执行
composer info
看下workerman/webman-framework 具体版本另外发下 /home/wwww/app/vendor/workerman/webman-framework/src/App.php 179行附近的代码
compoesr info :
workerman/webman-framework v1.3.9 High performance HTTP Service Framework.
workerman/workerman v4.0.33 An asynchronous event driven PHP framework for easily building fast, scalable network applications.
报错源文件代码:
/**
*/
protected static function unsafeUri($path)
{
if (strpos($path, '/../') !== false || strpos($path,"\") !== false || strpos($path, "\0") !== false) {
$callback = static::getFallback();
$request->app = $request->controller = $request->action = '';
static::send($connection, $callback($request), $request);
return true;
}
return false;
}
版本太老了,升级下就好了。升级前注意备份
好的,感谢大佬~