/sites/all/libraries/grammar_parser/engine/editor.inc has a number of "continue" statements which with php 7.3.5 will take the site down.
I changed all of them to " return " so the code would run without PHP compile errors. but I do not know if that breaks the actual operation of the code
I also noticed that the ownership is sensitive also and while not related to this " reader.inc " of the wrong owner also kept the site down
Someone should look at this - as I am using the latest dev code
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | continue_statements-3052048-1.patch | 1.58 KB | hitchshock |
Comments
Comment #2
bobburns commentedComment #3
hitchshockIt's look like the case where we should use continue 2;
Comment #4
john franklin commentedI got
"continue 2" targeting switch is equivalent to "break 2". Did you mean to use "continue 3"?when I applied this patch to the copy of Grammar Parser in the API module. Updating to usecontinue 3has at least silenced the warnings, As @bobburns mentioned in the OP, I'm also not sure that's the correct thing to do.IMHO, that block of code is confusing enough that it should be refactored into several smaller functions with clearer flow control.