I’ve been scratching my head at this error. After duplicating the application and systematically deleting everything out of it, I narrowed the error down a part of my code that was commented out. I’ve encountered my fair share issues with Scriptcase over the last 3 years; and even though I can work around the issues I come across, I would have never expected my commented out code to be parsed. There’s obviously a very critical flaw that needs to be fixed when compiling and parsing code. For this reason, I’m posting it here for exposure.
I was able to replicate this bug on a blank application in a new project with a different database than I initially encountered it on. I believe it can be replicated in ANY PHP code. Buttons and Events were the only places I’ve tried so far.
Try it yourself:
/*
function() { alert(“Doesn’t Work”); };
$().dialog({
click: function () { $().dialog(‘close’); }
});
*/
Running the application results in: Parse error: syntax error, unexpected etc…
The above isn’t functional code; obviously when it’s commented out, it shouldn’t need to follow syntax. When I’m working on code, I’ll leave old snippets commented out. I’ve reduced it as much as I could while still getting the error.
Scriptcase: 8.1.043
PHP: 5.6.8
Zend: 3.3
WEB Server: Apache/2.3.4 (Win32) mod_fcgid/2.3.7
OS: WINDOWS SERVER 2008 R2 STANDARD SP 1