Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval中伪语法在AST中解释错误 #16

Open
LoRexxar opened this issue Aug 7, 2018 · 0 comments
Open

eval中伪语法在AST中解释错误 #16

LoRexxar opened this issue Aug 7, 2018 · 0 comments
Labels

Comments

@LoRexxar
Copy link
Owner

LoRexxar commented Aug 7, 2018

eval('if(' . $matches[1][$i] . '){$flag="if";}else{$flag="else";}');

向上述eval中的伪语法做难以做ast分析。

eval中变量整体作为字符串拼接语句,被解释为多个变量拼接

应对多个拼接变量都判断,回溯其中变量

@LoRexxar LoRexxar added the bug label Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant