SC V8.1 PHP code parser bug generate corrupted code.


/*/ ------------------- 
echo "temporary block of code";
// ------------------- */

Description:

  • Everywhere where php code is parsed (events, programming)
  • Parser erase all comments line.
  • Last line is not inline comment but block comment.
  • SC handle this line as inline comment and erase it with the end of block comment mark instead of end of comment detection.
  • So comment do not have end.
  • Normally it is OK but SC generate fatal error with this bug.

HOW TO SOLVE QUICKLY THIS CORE BUG:

Bugs team have a lot of work with other bugs so I came with this easy solution

/*/ ------------------- 
echo "temporary block of code";
// ------------------- 
*/