| Summary: | NEW works as a link to go to source | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Petyo Tanchev <petyo_tanchev> | ||||
| Component: | PDT | Assignee: | Zhongwei Zhao <zhaozhongwei> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P1 | CC: | ganoro, kalin.a, qiangsheng.w | ||||
| Version: | unspecified | Flags: | zhaozhongwei:
review?
(ganoro) qiangsheng.w: review+ zhaozhongwei: review? (zhaozhongwei) |
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I could not reproduce this bug on branch and head,when I Ctrl+Click the 'new' ,nothing happened!Maybe it has been fixed. (In reply to comment #1) > I could not reproduce this bug on branch and head,when I Ctrl+Click the 'new' > ,nothing happened!Maybe it has been fixed. there is missing a ";" in the code snippet. if you add it then the problem occurs. Created attachment 180310 [details]
patch
fixed the patch causes other bugs. first I thought this bug should be fixed in the core model,but it will cause other bugs,so now I judge if the selected word is "new",if so it will return null in PHPHyperlinkDetector.detectHyperlinks. I think it is ok now,because new is keyword,it could not be class/function/field name. Verified. Closing.... |
Found on 2.2.1.v20100906 Have a code like this: <?php class AAA{ } $aaa = new AAA() When you Ctrl+Click the 'new' it brings you to the class declaration, the same as when you do this on 'AAA()'