Anonymous | Login | Signup for a new account | 11-25-2024 00:22 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005765 | [Quercus] | minor | always | 07-03-14 00:25 | 11-13-14 12:58 | ||||
Reporter | luye66 | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.36 | ||||||
Summary | 0005765: 4.0.39 subclass can not assign value to the parent protected field | ||||||||
Description |
Here is a sample class A { private $_my; public function __construct(){ } public function printMy(){ print_r($this); } } class B extends A{ public function __construct() { parent::__construct(); $this->_my = 'bac'; } } $b = new B(); $b->printMy(); and the output with Qurcus is B Object ( [_my:protected] => [_my] => bac ) while in Apache is B Object ( [_my:protected] => bac ) this caused functions in parent cannot use $this->_my to get the value where subcalss set.. |
||||||||
Additional Information | |||||||||
Attached Files | index.php [^] (309 bytes) 07-03-14 00:25 | ||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed. 29 unique queries executed. |