CAST HIGHLIGHT - Analysis - PHP - perl: out: PARSE error : unterminated PHP section started at line 1 !!!

While performing the Highlight Source code scan, the scan process fails with the error perl: out: PARSE error : unterminated PHP section started at line 1 !!!

This error occurred while analyzing the file ABC.php (15766/15766)

 

 INFO perl: out: PARSE error : unterminated PHP section started at line 1 !!!
2023-07-06 01:23:50,104 ERROR AnalysisPipeline: Analysis failed
java.lang.Exception: Analysis child process failed with exit status 255
at com.castsoftware.highlight.analyze.Analyze.process(Analyze.java:235)
at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:183)
at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:60)
at com.castsoftware.highlight.CommandLine.run(CommandLine.java:530)
at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:16)
2023-07-06 01:23:50,120 ERROR console: (4) Command Line analysis error

 

Workaround or Action Plan

 

There are two workarounds for this PHP error: 

  • Exclude the file ABC.php and see if the analysis completes successfully. If the analysis succeeds, then you can provide us with the file and we can do an investigation on this file.

 

OR

 

  • This error (unterminated PHP section started at line 1) occurs when the PHP section is not properly closed in the source file. Please check the syntax of the PHP section in the file ABC.php and correct it accordingly. Once corrected, please run the analysis and let us know. 

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

Zendesk Ticket Number 

42490

Have more questions? Submit a request

Comments

Powered by Zendesk