Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Aug 23, 2021
1 parent 153ebe6 commit 3d91abf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ KunLun-M Dashbroad,并且允许通过apitoken来访问api获取数据

默认9999端口
```
python3 .\kunlun.py web 9999
python3 .\kunlun.py web -p 9999
```

![](docs/web.png)
Expand Down
4 changes: 4 additions & 0 deletions core/core_engine/php/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,10 @@ def parameters_back(param, nodes, function_params=None, lineno=0,
_is_co = 0
_cp = None

if not node:
logger.warning("[AST] dataflow analysize error.")
return is_co, cp, expr_lineno

# 加入扫描范围check, 如果当前行数大于目标行数,直接跳过(等于会不会有问题呢?)
if node.lineno >= int(lineno) and int(lineno) != 0:
return parameters_back(param, nodes[:-1], function_params, lineno,
Expand Down

0 comments on commit 3d91abf

Please sign in to comment.