Anonymous | Login | Signup for a new account | 11-25-2024 02:48 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | Product Version | 4.0.36 | |||||
Product Build | |||||||||
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 | |||||||||
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. |