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 213436

Summary: find usages php
Product: php Reporter: rwilson352
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description rwilson352 2012-06-02 22:51:57 UTC
Using "find usages" while editing PHP code is, from what I can tell, nothing more than a text search. We have a project where (unfortunately) people declared functions with the same name on multiple pages. So, a find usages search yields two results: 1) function declarations of the same name, and 2) any time a function with that name is called.

But, the results of find usages should be any time -that specific- function is called, not any time a function with the same name is called.

I hope I'm being clear.
Comment 1 schkovich 2012-06-03 09:11:52 UTC
Product Version: NetBeans IDE Dev (Build 201206020001)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Linux version 3.2.0-24-generic running on amd64; UTF-8; en_US (nb)

It appears that the problem is not OS related. I am experiencing exactly the same problem on Linux.

I have a class that defines method setActor. Find usages will not return only usages of MyClass::setActor() but AnyClass::setActor. In my case Zend_Soap_Server::setActor().

Find usages of method having common name like "setBody" might return large number of entries making result set unusable.
Comment 2 Ondrej Brejla 2012-06-04 07:32:46 UTC

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