Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: lubosdz on January 07, 2012, 10:59:34 pm
-
Hi,
does PHP reverse source code engineering support heredoc syntax?
I cannot import many PHP (PHP5) files receiving error message:
There was an error parsing D:\_projects\framework\views\uk\profile-summary.php on line 28. Unexpected symbol: <
And the block code that fails to parse:
echo <<<EOD
<tr style="background:{$color}">
<td align="center">{$time}</td>
<td>{$log[1]}</td>
<td>{$log[2]}</td>
<td>{$message}</td>
</tr>
EOD;
EA cannot apparently parse the "<<<" string.
Is heredoc syntax actually supported for PHP5?
Heredoc examples:
http://www.phpf1.com/tutorial/php-heredoc-syntax.html
http://php.net/manual/en/language.types.string.php
I am using EA 7.5, win7 x86.
Thanx
Lubos
-
Yes, but you'll need to upgrade your EA version. It wasn't available in that version.