This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 126141 - PHP editor reports error on syntactically correct PHP code
Summary: PHP editor reports error on syntactically correct PHP code
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks: 126072
  Show dependency tree
 
Reported: 2008-01-28 19:11 UTC by Jan Chalupa
Modified: 2008-03-27 13:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Chalupa 2008-01-28 19:11:04 UTC
[NB 6.1 build #20080125; JDK 6u3]

I have a project with WordPress 2.3.2 sources. The editor reports an error on line 17 of the wp-links-opml.php file. The
offending code fragment is:

<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" -->

Adding a semicolon ';' after the PHP statement fixes the problem.
Comment 1 Alexei Mokeev 2008-01-29 06:45:09 UTC
Reproduced on 6.1 m1
Comment 2 Denis Anisimov 2008-01-30 13:35:09 UTC
I'm not sure that we can fix it with changing .nbs file only.
It seems it would be possible to write .nbs file for described situation 
but only when file contains PHP block without HTML blocks.
Because the following code will be not correctly recognized by .nbs file
( no matter how it is written ) :
<?php  echo "one" ?>
<a href="a">href</a>
<?php echo "two" ?>

But I need to investigate this more deeply.
Comment 3 Denis Anisimov 2008-02-01 13:17:13 UTC
I have investigated situation and investigation confirms my suggestion that 
syntax without ";" will works only for PHP file without HTML.

So I don't know how we can change situation via changing ".nbs" file.
Need to ask "languages" module guys.
Comment 4 Petr Pisl 2008-03-27 13:03:03 UTC
Fixed in with the new PHP parser.