I have to make a script in PHP that will scan other PHP files to check for dangerous function calls like eval,exec .
Is there any parser available that can give me a logical structure of code.
Or i have to go with Regex.
Thanks, any type suggestions are welcome.
Arshdeep
Edit: i am not considering it as "one shot kill all". I have some other things in mind too, but its still something that i have to do.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…