Book a Demo

Author Topic: PHP reverse code engineering - heredoc syntax  (Read 2770 times)

lubosdz

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
PHP reverse code engineering - heredoc syntax
« 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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: PHP reverse code engineering - heredoc syntax
« Reply #1 on: January 09, 2012, 09:05:09 am »
Yes, but you'll need to upgrade your EA version. It wasn't available in that version.