Get rid of alternative syntax for control structures (endif, endwhile, endfor, endforeach). Only curly brackets are allowed.
This commit is contained in:
@@ -614,9 +614,7 @@ static sxu32 KeywordCode(const char *z, int n) {
|
||||
{"class", PH7_TKWRD_CLASS},
|
||||
{"as", PH7_TKWRD_AS},
|
||||
{"continue", PH7_TKWRD_CONTINUE},
|
||||
{"endif", PH7_TKWRD_ENDIF},
|
||||
{"function", PH7_TKWRD_FUNCTION},
|
||||
{"endwhile", PH7_TKWRD_ENDWHILE},
|
||||
{"while", PH7_TKWRD_WHILE},
|
||||
{"eval", PH7_TKWRD_EVAL},
|
||||
{"do", PH7_TKWRD_DO},
|
||||
@@ -627,8 +625,6 @@ static sxu32 KeywordCode(const char *z, int n) {
|
||||
{"empty", PH7_TKWRD_EMPTY},
|
||||
{"instanceof", PH7_TKWRD_INSTANCEOF},
|
||||
{"interface", PH7_TKWRD_INTERFACE},
|
||||
{"endfor", PH7_TKWRD_ENDFOR},
|
||||
{"endforeach", PH7_TKWRD_END4EACH},
|
||||
{"for", PH7_TKWRD_FOR},
|
||||
{"foreach", PH7_TKWRD_FOREACH},
|
||||
{"isset", PH7_TKWRD_ISSET},
|
||||
|
Reference in New Issue
Block a user