Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311523 - Global variable Mark Occurrence marks static field wrongly
Summary: Global variable Mark Occurrence marks static field wrongly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 08:15 EDT by Zhongwei Zhao CLA
Modified: 2020-05-14 11:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhongwei Zhao CLA 2010-05-04 08:15:21 EDT
here is the test file 

<?php
namespace My\aa\bb;
class Foo {
   public static $bar="";
   public function Foo($bar){
   }
}
$bar = "";

namespace My\aa\cc;
class Foo {
   public static $bar="";
   public function Foo($bar){
   }
}
$bar = "";
use My\aa\bb;
Foo::$bar;//$bar is marked wrongly
$bar| = "";//| is the cursor position

the $bar in line Foo::$bar; is marked wrongly
Comment 1 Zhongwei Zhao CLA 2010-05-05 04:46:50 EDT
fixed in head
Comment 2 Gadi Goldbarg CLA 2010-05-17 10:20:17 EDT
Verified at PDT-2.2.0.v20100517

Only variables outside classes is market at shown behavior
If moved cursor over static variables only variables invocation and variables definition is marked

Closing this issue...

Verified by
Teodor Kirkov
teodor.k@zend.com