Hello,
I have found a bug in V8 that was NOT present in V7.
To reproduce this bug using SC V8, please follow these steps:
- create a simple grid application using whatever sql statement you prefer.
For the sake of this example I am using this trivial sql statement:
SELECT
MYFIELD
FROM
MYTABLE
-
Generate and run the application.
So far so good: it works (of course MYTABLE must exists with a field named MYFIELD) -
Now modify the sql statement, replacing the table name with a variable, like this:
SELECT
MYFIELD
FROM
[TABVAR]
-
Generate and run the application.
-
At run time you will be prompted to enter a value for variable TABVAR. Please enter MYTABLE as a value.
You should get this error message:
Parse error: syntax error, unexpected ‘$_SESSION’ (T_VARIABLE), expecting identifier (T_STRING) in /opt/NetMake/v8/wwwroot/scriptcase/app/Test/TEST/index.php on line 540
- If you look at the generated code you see that variable $_SESSION has been prefixed with a \ (backslash), which causes a syntax error in the PHP parser.
I have already opened a ticket and tried to explain this bug to the support team but with no success.
They are not able to reproduce the bug. I guess we have difficulties in understanding each other.
My portoguese is honestly zero and we have some issues in understanding each other using english.
Can you please confirm you can reproduce it ?
My hope is that someone fluent in portuguese can open this bug to the support team.
Thanks a lot.