Kunlun-M icon indicating copy to clipboard operation
Kunlun-M copied to clipboard

source在类私有函数中无法准确的回溯跟踪

Open Autumn-27 opened this issue 1 year ago • 1 comments

System and Python Environment

Item Tooltip Value
System uname -a
Python python -V
Cobra python kunlun.py

Description

private function getPhpLangArrayByModule($local, $module) { return $this->getArrayFromPhp($this->getLangFileFullPath($local, $module)); }

private function getArrayFromPhp($file) { if (file_exists($file)) { $array = require ($file); if (is_array($array)) { return $array; } } return []; }

在$array = require ($file); 这里赋值调用require 代码中 赋值的分支 没有require的处理

查找调用getArrayFromPhp的代码时匹配不到return $this->getArrayFromPhp($this->getLangFileFullPath($local, $module));

Autumn-27 avatar Aug 15 '23 06:08 Autumn-27

kunlunm在处理类的私有函数调用链的时候会跟出问题,目前的架构不支持这么复杂的场景,没什么好办法

LoRexxar avatar Aug 15 '23 06:08 LoRexxar