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 140286 - [65cat] error message when qoutation marks are used in html tags within echo tags
Summary: [65cat] error message when qoutation marks are used in html tags within echo ...
Status: RESOLVED DUPLICATE of bug 211165
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-16 13:11 UTC by throsite
Modified: 2012-04-13 14:18 UTC (History)
1 user (show)

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 throsite 2008-07-16 13:11:44 UTC
[ BUILD # : 1 ]
[ JDK VERSION : 1.6.0_06 ]

When I type a line such as:

echo "<form action="file.php" name="testform">"; 

   instead of

echo "<form action=file.php name=testform>";

I get four confusing error messages.

Why can't the error message just state that "quotation marks
shouldn't be placed in html tags within echo tags"?
Comment 1 Petr Pisl 2008-07-16 16:40:14 UTC
The parser really sees four fatal errors in your example. The code can be also fixed in this way:

echo "<form action=".file.php." name=".testform.">";

The parser is not able to predict, what user wants. I agree that your example generates four errors, which are the same.
I can check messages, which are on the same line and ignore rest of messages. 

This is not P1 and I don't think that this is P2 too. 
Comment 2 Tomasz Slota 2010-02-10 08:44:37 UTC
reassigning to default owner
Comment 3 Tomas Mysik 2010-02-10 14:06:07 UTC
Reassigning to Petr, he already has evaluated this issue. Thanks.
Comment 4 Petr Pisl 2010-04-12 11:24:58 UTC
This will not be fixed in NB 6.9. There has to implemented better interpretation of the errors from PHP parser. Probably next release.
Comment 5 Petr Pisl 2011-06-08 11:56:33 UTC
Still valid.
Comment 6 Ondrej Brejla 2012-04-13 14:18:59 UTC

*** This bug has been marked as a duplicate of bug 211165 ***