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

Bug 364683

Summary: Field access in child class cannot be found
Product: z_Archived Reporter: Q.S. Wang <qiangsheng.w>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: ganoro, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Q.S. Wang CLA 2011-11-24 02:59:33 EST
Run a PHP search for finding tmp field. Only the tmp field in scrap.php can be found.

1) scrap.php

<?php

class a {

protected $tmp;

protected function get_tmp() { return $this->tmp; }

}

2) scrap1.php

<?php

require_once('scrap.php');

class b extends a {

protected function get_tmp_var() { return $this->tmp; }

}
Comment 1 Zhongwei Zhao CLA 2011-12-06 22:30:23 EST
fixed
Comment 2 Sylvia Tancheva CLA 2011-12-09 10:16:02 EST
Verified. Closing