#354 closed Bugs (Fixed)
<?xml flagged as error
| Reported by: | nobody | Owned by: | nobody |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | PHP Parser | Version: | None |
| Keywords: | Cc: |
Description
OK, after the update to 20051018-CVS the parser works fine except for one case: If a .html file begins with <?xml version="1.0" encoding="iso-8859-1"?> the parser seems to take this as an invitation to parse it as PHP. It marks the word "version" as an error with the info Parser error "';' expected after expression (Found token: Identifier(version))" No, "<?" is not invoking PHP code in this case and "xml" is not an expression ;-) Isn't the only case where code is supposed to immediately follow after the ? without a space the special "templating" case "<?=$var?>" ? OK, the space is indeed optional (*sigh*). How about a special case in the parser for "<?xml"?
Change History (4)
comment:1 Changed 8 years ago by nobody
comment:2 Changed 8 years ago by beuss
Logged In: YES user_id=1195734 >Did you make a fresh install with "-clan" option? >The PHP editor doesn't support *.html files by default in >the latest snapshots. That's not the point. A .php file can also begin with <?xml If you have disable the short tag on server (ie accept <?), it's legal. The fact is that phpeclipse parse must ignore <?xml tags...
comment:3 Changed 7 years ago by bananeweizen
- Summary changed from PHP parsing active for non-PHP data to <?xml flagged as error
Logged In: YES user_id=440739 (changed description)
comment:4 Changed 7 years ago by bananeweizen
- Status changed from assigned to closed
Logged In: YES user_id=440739 Fixed in CVS 2006-01-20.
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/eclipsebutton_med.png)