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 238807 - Do not parse files which are not registered for PHP mime type
Summary: Do not parse files which are not registered for PHP mime type
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-26 09:29 UTC by Ondrej Brejla
Modified: 2013-11-26 11:21 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 Ondrej Brejla 2013-11-26 09:29:26 UTC
Files which contain some PHP snippet (e.g. Markdown files), but their file extension is not registered for PHP mime type, should not be parsed. Mostly there don't have to be a valid PHP parsable code and unexpected errors are propagated through whole project root. They can be lexed, it doesn't matter, but shouldn't be parsed.
Comment 1 Ondrej Brejla 2013-11-26 10:22:10 UTC
Files which don't have any file extension will be parsed as well.
Comment 2 Ondrej Brejla 2013-11-26 11:21:35 UTC
Fixed in web-main #4a2d7d0a12ce