Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP editor doesn't validate if no closing PHP tag "?>"
PHP editor doesn't validate if no closing PHP tag "?>" [message #92904] Fri, 06 February 2009 19:17 Go to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
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 20:45 Go to previous message
sNop is currently offline sNopFriend
Messages: 281
Registered: July 2009
Senior Member
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.
Previous Topic:HTML Code Completion inside PHP Tags
Next Topic:Biudl Path
Goto Forum:
  


Current Time: Tue Jan 31 20:22:01 GMT 2023

Powered by FUDForum. Page generated in 0.26748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top