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 159483 - "experimental" hints for "unknown function" and "variable not used in scope" point out function references
Summary: "experimental" hints for "unknown function" and "variable not used in scope" ...
Status: RESOLVED DUPLICATE of bug 170541
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 06:20 UTC by nairbv
Modified: 2009-08-18 12:59 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 nairbv 2009-03-03 06:20:54 UTC
The "experimental" hints for "unknown function" and "variable not used in scope" warn on valid function references.

for example, in the code:
    $func = create_function("","");
    $func();

The first line will give a warning "variable does not seem to be used in scope," and the second line will give a warning
"unknown function."
Comment 1 Filip Zamboj 2009-05-04 17:38:39 UTC
I didn't reproduce on build 2009-05-04_15-03-52 from bertram.netbeans.org/hudson. 

@reporter: Please provide your build number. 
Comment 2 nairbv 2009-05-05 03:10:41 UTC
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) 64-Bit Server VM 11.0-b15
System: Linux version 2.6.27-11-generic running on amd64; UTF-8; en_SG (nb)

This only occurs if in options->editor->hints the "experimental" hints are turned on for language "php."

Similar invalid warnings come up in cases of exception handling in php.

It seems I'm using an older build... though I just ran "check for updates" and nothing was found.  If this is already
fixed, when would the fix be available?

Comment 3 rmatous 2009-05-05 17:26:22 UTC
experimental hints means "not production quality". On the other hand you are right - they are part of the build already
since 6.5. It would be nice to make decision which of them should be supported in 6.7, fix them & enable as default  
Comment 4 rmatous 2009-08-18 12:59:50 UTC

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