| Summary: | Field access in child class cannot be found | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Q.S. Wang <qiangsheng.w> |
| Component: | PDT | Assignee: | 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: | |||
fixed Verified. Closing |
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; } }