Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364683 - Field access in child class cannot be found
Summary: Field access in child class cannot be found
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 02:59 EST by Q.S. Wang CLA
Modified: 2020-05-14 11:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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