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 178769 - Wrong "not used in scope"/"not initialized" hints produced for variables
Summary: Wrong "not used in scope"/"not initialized" hints produced for variables
Status: RESOLVED DUPLICATE of bug 170541
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 03:04 UTC by karsten
Modified: 2010-03-19 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the wrong "not used in scope" hint (21.54 KB, image/png)
2009-12-17 03:04 UTC, karsten
Details
Shows the wrong "variable not initialized" hint (21.31 KB, image/png)
2009-12-17 03:07 UTC, karsten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karsten 2009-12-17 03:04:58 UTC
Created attachment 92697 [details]
Shows the wrong "not used in scope" hint

The screenshots shows the warning produced, which is wrong, since there is no such thing as "block scope" in PHP (which is what I think the analyzer assumes, probably coming from a different background.

Another hint warns about uninitialized variables, which in this case is also wrong.
Comment 1 karsten 2009-12-17 03:07:52 UTC
Created attachment 92698 [details]
Shows the wrong "variable not initialized" hint
Comment 2 rmatous 2010-03-19 13:51:43 UTC
experimental hint

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