SC parser breaks on setting string variable

I have a blank app with just this line of code :


$v = "setTimeout(function () { $('# ";

At runetime SC prints this error:

Parse error: syntax error, unexpected ‘$_SESSION’ (T_VARIABLE) in …

In the compiled code in index.php, there’s a ‘1’ just after the “$v = …” line.
Manually removing the ‘1’ from that file, makes the code run with no errors.
@NetMake, can you please check is this is an issue with your parser?
I can’t find any other explanations.


1292|       $_SESSION['scriptcase']['blank_test_strig_issue']['contr_erro'] = 'on';
1293|  $v = "setTimeout(function () { $('# ";
1294|
1295|
1296| 1
1297| $_SESSION['scriptcase']['blank_test_strig_issue']['contr_erro'] = 'off'