webMan 依赖报错:vendor/workerman/webman-framework/src/App.php

wulic

报错信息:
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"

频率挺高的,项目可以正常运行。不知道是哪里调用出了问题,还是框架自身启动的时候出的问题。求大佬帮帮忙!

1078 1 0
1个回答

walkor 打赏

执行 composer info 看下workerman/webman-framework 具体版本
另外发下 /home/wwww/app/vendor/workerman/webman-framework/src/App.php 179行附近的代码

  • wulic 2022-09-06

    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.

    报错源文件代码:
    /**

    • @param $path
    • @return bool
      */
      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;
      }
  • walkor 2022-09-06

    版本太老了,升级下就好了。升级前注意备份

  • wulic 2022-09-06

    好的,感谢大佬~

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