Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311523

Summary: Global variable Mark Occurrence marks static field wrongly
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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