PHP editor doesn't validate if no closing PHP tag "?>" [message #92904] |
Fri, 06 February 2009 14:17  |
Eclipse User |
|
|
|
Hi. If you have a "pure" php file, my understanding is that the closing
"?>" tag is optional. However, if you omit this tag, the PDT PHP editor
doesn't seem to detect certain errors.
To see, this, create a PHP file, take out the closing "?>" tag, and
delete the closing curly brace. The project explorer will show an error
"label decoration" but the editor doesn't show any error. If you add the
"?>" back, the editor now shows the problem.
Is this a bug? Thanks. Mark
|
|
|
Re: PHP editor doesn't validate if no closing PHP tag "?>" [message #92921 is a reply to message #92904] |
Fri, 06 February 2009 15:45  |
Eclipse User |
|
|
|
Mark Dexter napsal(a):
> Hi. If you have a "pure" php file, my understanding is that the closing
> "?>" tag is optional. However, if you omit this tag, the PDT PHP editor
> doesn't seem to detect certain errors.
>
> To see, this, create a PHP file, take out the closing "?>" tag, and
> delete the closing curly brace. The project explorer will show an error
> "label decoration" but the editor doesn't show any error. If you add the
> "?>" back, the editor now shows the problem.
>
> Is this a bug? Thanks. Mark
Hi,
this bug relate with detecting @todo tasks, I have project where I have ended all PHP
files with "?>", but I have removed all this closing tags("?>") now and @todo task aren't
recognized.
|
|
|
Powered by
FUDForum. Page generated in 0.03426 seconds