OneSourceCat / phpvulhunter

A tool that can scan php vulnerabilities automatically using static analysis methods
486 stars 127 forks source link

修复PHP7下的兼容性错误 #6

Open lzskyline opened 6 years ago

lzskyline commented 6 years ago

PHP 5.x.x, a break statement outside a for, foreach or switch statement DID NOT throw an error message and was syntactically okay. PHP 7.0 and higher, a break statement is no longer permitted outside a for, foreach or switch statement and gives a fatal error.

So I replace break with return false

timerlau commented 6 years ago

PHP7下确实有这个问题!希望作者合并一下!是不是作者都不维护了呢?