Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5765 | minor | always | 07-03-14 00:25 | 11-13-14 12:58 | |
|
|||||
Reporter: | luye66 | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.36 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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.. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: | index.php [^] (309 bytes) 07-03-14 00:25 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|