No check for closing bracket in SWITCH block #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Aer Information
6abb65a04c
Your problem description
Switch block does not need closing bracket or 'endswitch' statement. If this is missing, all other code is omitted.
Expected results
Above code snippet should not compile due to missing ending bracket.
Same problem occurs when SWITCH: (...) ENDSWITCH construct is used. Currently PH7 Engine checks only if both structures are not mixed together, ie. switch() { endswitch.
Current results
Presented code snippet, outputs "12" as expected, and everything after switch block is omitted. Last echo does not give any output.
Fixed in
ae2c1e2ae5
.